michael@0: michael@0: /* michael@0: * Copyright 2012 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #include "GrClipMaskCache.h" michael@0: michael@0: GrClipMaskCache::GrClipMaskCache() michael@0: : fContext(NULL) michael@0: , fStack(sizeof(GrClipStackFrame)) { michael@0: // We need an initial frame to capture the clip state prior to michael@0: // any pushes michael@0: SkNEW_PLACEMENT(fStack.push_back(), GrClipStackFrame); michael@0: } michael@0: michael@0: void GrClipMaskCache::push() { michael@0: SkNEW_PLACEMENT(fStack.push_back(), GrClipStackFrame); michael@0: }