Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: src/gpu/GrClipMaskManager.h

Issue 921453002: Rename GrResourceCache2 to GrResourceCache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/GrGpuResource.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #ifndef GrClipMaskManager_DEFINED 7 #ifndef GrClipMaskManager_DEFINED
8 #define GrClipMaskManager_DEFINED 8 #define GrClipMaskManager_DEFINED
9 9
10 #include "GrClipMaskCache.h" 10 #include "GrClipMaskCache.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 */ 50 */
51 bool setupClipping(GrPipelineBuilder*, 51 bool setupClipping(GrPipelineBuilder*,
52 GrPipelineBuilder::AutoRestoreEffects*, 52 GrPipelineBuilder::AutoRestoreEffects*,
53 GrPipelineBuilder::AutoRestoreStencil*, 53 GrPipelineBuilder::AutoRestoreStencil*,
54 GrScissorState*, 54 GrScissorState*,
55 const GrClipData* clipDataIn, 55 const GrClipData* clipDataIn,
56 const SkRect* devBounds); 56 const SkRect* devBounds);
57 57
58 /** 58 /**
59 * Purge resources to free up memory. TODO: This class shouldn't hold any lo ng lived refs 59 * Purge resources to free up memory. TODO: This class shouldn't hold any lo ng lived refs
60 * which will allow ResourceCache2 to automatically purge anything this clas s has created. 60 * which will allow Resourcecache to automatically purge anything this class has created.
61 */ 61 */
62 void purgeResources(); 62 void purgeResources();
63 63
64 bool isClipInStencil() const { 64 bool isClipInStencil() const {
65 return kStencil_ClipMaskType == fCurrClipMaskType; 65 return kStencil_ClipMaskType == fCurrClipMaskType;
66 } 66 }
67 67
68 bool isClipInAlpha() const { 68 bool isClipInAlpha() const {
69 return kAlpha_ClipMaskType == fCurrClipMaskType; 69 return kAlpha_ClipMaskType == fCurrClipMaskType;
70 } 70 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 kAlpha_ClipMaskType, 191 kAlpha_ClipMaskType,
192 } fCurrClipMaskType; 192 } fCurrClipMaskType;
193 193
194 GrClipMaskCache fAACache; // cache for the AA path 194 GrClipMaskCache fAACache; // cache for the AA path
195 GrClipTarget* fClipTarget; 195 GrClipTarget* fClipTarget;
196 StencilClipMode fClipMode; 196 StencilClipMode fClipMode;
197 197
198 typedef SkNoncopyable INHERITED; 198 typedef SkNoncopyable INHERITED;
199 }; 199 };
200 #endif // GrClipMaskManager_DEFINED 200 #endif // GrClipMaskManager_DEFINED
OLDNEW
« no previous file with comments | « include/gpu/GrGpuResource.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698