OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrGpu_DEFINED | 8 #ifndef GrGpu_DEFINED |
9 #define GrGpu_DEFINED | 9 #define GrGpu_DEFINED |
10 | 10 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 // This timestamp can be used to lazily detect when cached 3D context state | 288 // This timestamp can be used to lazily detect when cached 3D context state |
289 // is dirty. | 289 // is dirty. |
290 ResetTimestamp getResetTimestamp() const { | 290 ResetTimestamp getResetTimestamp() const { |
291 return fResetTimestamp; | 291 return fResetTimestamp; |
292 } | 292 } |
293 | 293 |
294 /** | 294 /** |
295 * Can the provided configuration act as a color render target? | 295 * Can the provided configuration act as a color render target? |
296 */ | 296 */ |
297 bool isConfigRenderable(GrPixelConfig config) const { | 297 bool isConfigRenderable(GrPixelConfig config) const { |
298 GrAssert(kGrPixelConfigCnt > config); | 298 SkASSERT(kGrPixelConfigCnt > config); |
299 return fConfigRenderSupport[config]; | 299 return fConfigRenderSupport[config]; |
300 } | 300 } |
301 | 301 |
302 /** | 302 /** |
303 * These methods are called by the clip manager's setupClipping function | 303 * These methods are called by the clip manager's setupClipping function |
304 * which (called as part of GrGpu's implementation of onDraw and | 304 * which (called as part of GrGpu's implementation of onDraw and |
305 * onStencilPath member functions.) The GrGpu subclass should flush the | 305 * onStencilPath member functions.) The GrGpu subclass should flush the |
306 * stencil state to the 3D API in its implementation of flushGraphicsState. | 306 * stencil state to the 3D API in its implementation of flushGraphicsState. |
307 */ | 307 */ |
308 void enableScissor(const SkIRect& rect) { | 308 void enableScissor(const SkIRect& rect) { |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 // these are mutable so they can be created on-demand | 530 // these are mutable so they can be created on-demand |
531 mutable GrIndexBuffer* fQuadInd
exBuffer; | 531 mutable GrIndexBuffer* fQuadInd
exBuffer; |
532 // Used to abandon/release all resources created by this GrGpu. TODO: Move t
his | 532 // Used to abandon/release all resources created by this GrGpu. TODO: Move t
his |
533 // functionality to GrResourceCache. | 533 // functionality to GrResourceCache. |
534 ResourceList fResourc
eList; | 534 ResourceList fResourc
eList; |
535 | 535 |
536 typedef GrDrawTarget INHERITED; | 536 typedef GrDrawTarget INHERITED; |
537 }; | 537 }; |
538 | 538 |
539 #endif | 539 #endif |
OLD | NEW |