OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrRenderTargetOpList_DEFINED | 8 #ifndef GrRenderTargetOpList_DEFINED |
9 #define GrRenderTargetOpList_DEFINED | 9 #define GrRenderTargetOpList_DEFINED |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 const SkIPoint& dstPoint); | 124 const SkIPoint& dstPoint); |
125 | 125 |
126 gr_instanced::InstancedRendering* instancedRendering() const { | 126 gr_instanced::InstancedRendering* instancedRendering() const { |
127 SkASSERT(fInstancedRendering); | 127 SkASSERT(fInstancedRendering); |
128 return fInstancedRendering; | 128 return fInstancedRendering; |
129 } | 129 } |
130 | 130 |
131 SkDEBUGCODE(void dump() const override;) | 131 SkDEBUGCODE(void dump() const override;) |
132 | 132 |
133 private: | 133 private: |
134 friend class GrRenderTargetContextPriv; // for clearStencilClip | 134 friend class GrRenderTargetContextPriv; // for clearStencilClip and stencil
clip state. |
135 | 135 |
136 // Returns the batch that the input batch was combined with or the input bat
ch if it wasn't | 136 // Returns the batch that the input batch was combined with or the input bat
ch if it wasn't |
137 // combined. | 137 // combined. |
138 GrBatch* recordBatch(GrBatch*, const SkRect& clippedBounds); | 138 GrBatch* recordBatch(GrBatch*, const SkRect& clippedBounds); |
139 void forwardCombine(); | 139 void forwardCombine(); |
140 | 140 |
141 // Makes a copy of the dst if it is necessary for the draw. Returns false if
a copy is required | 141 // Makes a copy of the dst if it is necessary for the draw. Returns false if
a copy is required |
142 // but couldn't be made. Otherwise, returns true. This method needs to be p
rotected because it | 142 // but couldn't be made. Otherwise, returns true. This method needs to be p
rotected because it |
143 // needs to be accessed by GLPrograms to setup a correct drawstate | 143 // needs to be accessed by GLPrograms to setup a correct drawstate |
144 bool setupDstReadIfNecessary(const GrPipelineBuilder&, | 144 bool setupDstReadIfNecessary(const GrPipelineBuilder&, |
(...skipping 17 matching lines...) Expand all Loading... |
162 GrGpu* fGpu; | 162 GrGpu* fGpu; |
163 GrResourceProvider* fResourceProvider; | 163 GrResourceProvider* fResourceProvider; |
164 | 164 |
165 bool fClipBatchToBounds; | 165 bool fClipBatchToBounds; |
166 bool fDrawBatchBounds; | 166 bool fDrawBatchBounds; |
167 int fMaxBatchLookback; | 167 int fMaxBatchLookback; |
168 int fMaxBatchLookahead; | 168 int fMaxBatchLookahead; |
169 | 169 |
170 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; | 170 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; |
171 | 171 |
| 172 int32_t fLastClipStackGenID; |
| 173 SkIRect fLastClipStackRect; |
| 174 SkIPoint fLastClipOrigin; |
| 175 |
172 typedef GrOpList INHERITED; | 176 typedef GrOpList INHERITED; |
173 }; | 177 }; |
174 | 178 |
175 #endif | 179 #endif |
OLD | NEW |