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

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

Issue 695873002: small fix for clip mask cache clear (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more cleanup Created 6 years, 1 month 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 | « no previous file | src/gpu/GrDrawTarget.h » ('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 7
8 #ifndef GrClipMaskManager_DEFINED 8 #ifndef GrClipMaskManager_DEFINED
9 #define GrClipMaskManager_DEFINED 9 #define GrClipMaskManager_DEFINED
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 */ 73 */
74 void purgeResources(); 74 void purgeResources();
75 75
76 bool isClipInStencil() const { 76 bool isClipInStencil() const {
77 return kStencil_ClipMaskType == fCurrClipMaskType; 77 return kStencil_ClipMaskType == fCurrClipMaskType;
78 } 78 }
79 bool isClipInAlpha() const { 79 bool isClipInAlpha() const {
80 return kAlpha_ClipMaskType == fCurrClipMaskType; 80 return kAlpha_ClipMaskType == fCurrClipMaskType;
81 } 81 }
82 82
83 void invalidateStencilMask() {
84 if (kStencil_ClipMaskType == fCurrClipMaskType) {
85 fCurrClipMaskType = kNone_ClipMaskType;
86 }
87 }
88
89 GrContext* getContext() { 83 GrContext* getContext() {
90 return fAACache.getContext(); 84 return fAACache.getContext();
91 } 85 }
92 86
93 void setClipTarget(GrClipTarget*); 87 void setClipTarget(GrClipTarget*);
94 88
95 void adjustPathStencilParams(GrStencilSettings*); 89 void adjustPathStencilParams(GrStencilSettings*);
96 90
97 private: 91 private:
98 /** 92 /**
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } fCurrClipMaskType; 189 } fCurrClipMaskType;
196 190
197 GrClipMaskCache fAACache; // cache for the AA path 191 GrClipMaskCache fAACache; // cache for the AA path
198 GrClipTarget* fClipTarget; 192 GrClipTarget* fClipTarget;
199 StencilClipMode fClipMode; 193 StencilClipMode fClipMode;
200 194
201 typedef SkNoncopyable INHERITED; 195 typedef SkNoncopyable INHERITED;
202 }; 196 };
203 197
204 #endif // GrClipMaskManager_DEFINED 198 #endif // GrClipMaskManager_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698