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

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

Issue 19449002: Replace all instances of GrRect with SkRect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrClipMaskCache.h ('k') | src/gpu/GrClipMaskManager.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrClipMaskManager_DEFINED 9 #ifndef GrClipMaskManager_DEFINED
10 #define GrClipMaskManager_DEFINED 10 #define GrClipMaskManager_DEFINED
11 11
12 #include "GrContext.h" 12 #include "GrContext.h"
13 #include "GrDrawState.h" 13 #include "GrDrawState.h"
14 #include "GrNoncopyable.h" 14 #include "GrNoncopyable.h"
15 #include "GrRect.h"
16 #include "GrReducedClip.h" 15 #include "GrReducedClip.h"
17 #include "GrStencil.h" 16 #include "GrStencil.h"
18 #include "GrTexture.h" 17 #include "GrTexture.h"
19 18
20 #include "SkClipStack.h" 19 #include "SkClipStack.h"
21 #include "SkDeque.h" 20 #include "SkDeque.h"
22 #include "SkPath.h" 21 #include "SkPath.h"
23 #include "SkRefCnt.h" 22 #include "SkRefCnt.h"
24 #include "SkTLList.h" 23 #include "SkTLList.h"
25 24
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 bool drawElement(GrTexture* target, const SkClipStack::Element*, GrPathRende rer* = NULL); 134 bool drawElement(GrTexture* target, const SkClipStack::Element*, GrPathRende rer* = NULL);
136 135
137 // Determines whether it is possible to draw the element to both the stencil buffer and the 136 // Determines whether it is possible to draw the element to both the stencil buffer and the
138 // alpha mask simultaneously. If so and the element is a path a compatible p ath renderer is 137 // alpha mask simultaneously. If so and the element is a path a compatible p ath renderer is
139 // also returned. 138 // also returned.
140 bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element* , GrPathRenderer**); 139 bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element* , GrPathRenderer**);
141 140
142 void mergeMask(GrTexture* dstMask, 141 void mergeMask(GrTexture* dstMask,
143 GrTexture* srcMask, 142 GrTexture* srcMask,
144 SkRegion::Op op, 143 SkRegion::Op op,
145 const GrIRect& dstBound, 144 const SkIRect& dstBound,
146 const GrIRect& srcBound); 145 const SkIRect& srcBound);
147 146
148 void getTemp(int width, int height, GrAutoScratchTexture* temp); 147 void getTemp(int width, int height, GrAutoScratchTexture* temp);
149 148
150 void setupCache(const SkClipStack& clip, 149 void setupCache(const SkClipStack& clip,
151 const GrIRect& bounds); 150 const SkIRect& bounds);
152 151
153 /** 152 /**
154 * Called prior to return control back the GrGpu in setupClipping. It 153 * Called prior to return control back the GrGpu in setupClipping. It
155 * updates the GrGpu with stencil settings that account stencil-based 154 * updates the GrGpu with stencil settings that account stencil-based
156 * clipping. 155 * clipping.
157 */ 156 */
158 void setGpuStencil(); 157 void setGpuStencil();
159 158
160 /** 159 /**
161 * Adjusts the stencil settings to account for interaction with stencil 160 * Adjusts the stencil settings to account for interaction with stencil
162 * clipping. 161 * clipping.
163 */ 162 */
164 void adjustStencilParams(GrStencilSettings* settings, 163 void adjustStencilParams(GrStencilSettings* settings,
165 StencilClipMode mode, 164 StencilClipMode mode,
166 int stencilBitCnt); 165 int stencilBitCnt);
167 166
168 typedef GrNoncopyable INHERITED; 167 typedef GrNoncopyable INHERITED;
169 }; 168 };
170 169
171 #endif // GrClipMaskManager_DEFINED 170 #endif // GrClipMaskManager_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskCache.h ('k') | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698