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 GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 * src bounds then pixel values in the dst rect corresponding to area clipp
ed | 132 * src bounds then pixel values in the dst rect corresponding to area clipp
ed |
133 * by the src rect are not overwritten. This method is not guaranteed to suc
ceed | 133 * by the src rect are not overwritten. This method is not guaranteed to suc
ceed |
134 * depending on the type of surface, configs, etc, and the backend-specific | 134 * depending on the type of surface, configs, etc, and the backend-specific |
135 * limitations. | 135 * limitations. |
136 */ | 136 */ |
137 bool copySurface(GrSurface* dst, | 137 bool copySurface(GrSurface* dst, |
138 GrSurface* src, | 138 GrSurface* src, |
139 const SkIRect& srcRect, | 139 const SkIRect& srcRect, |
140 const SkIPoint& dstPoint); | 140 const SkIPoint& dstPoint); |
141 | 141 |
142 /** | 142 gr_instanced::InstancedRendering* instancedRendering() const { |
143 * Gets the shape rendering object if it is supported on this platform. | 143 SkASSERT(fInstancedRendering); |
144 */ | 144 return fInstancedRendering; |
145 gr_instanced::InstancedRendering* instancedRendering() const { return fInsta
ncedRendering; } | 145 } |
146 | 146 |
147 private: | 147 private: |
148 friend class GrDrawingManager; // for resetFlag & TopoSortTraits | 148 friend class GrDrawingManager; // for resetFlag & TopoSortTraits |
149 friend class GrDrawContextPriv; // for clearStencilClip | 149 friend class GrDrawContextPriv; // for clearStencilClip |
150 | 150 |
151 enum Flags { | 151 enum Flags { |
152 kClosed_Flag = 0x01, //!< This drawTarget can't accept any more bat
ches | 152 kClosed_Flag = 0x01, //!< This drawTarget can't accept any more bat
ches |
153 | 153 |
154 kWasOutput_Flag = 0x02, //!< Flag for topological sorting | 154 kWasOutput_Flag = 0x02, //!< Flag for topological sorting |
155 kTempMark_Flag = 0x04, //!< Flag for topological sorting | 155 kTempMark_Flag = 0x04, //!< Flag for topological sorting |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 bool fDrawBatchBounds; | 231 bool fDrawBatchBounds; |
232 int fMaxBatchLookback; | 232 int fMaxBatchLookback; |
233 int fMaxBatchLookahead; | 233 int fMaxBatchLookahead; |
234 | 234 |
235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; | 235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; |
236 | 236 |
237 typedef SkRefCnt INHERITED; | 237 typedef SkRefCnt INHERITED; |
238 }; | 238 }; |
239 | 239 |
240 #endif | 240 #endif |
OLD | NEW |