| 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 588 |
| 589 SkRect fDevBoundsStorage; | 589 SkRect fDevBoundsStorage; |
| 590 SkRect* fDevBounds; | 590 SkRect* fDevBounds; |
| 591 | 591 |
| 592 GrDeviceCoordTexture fDstCopy; | 592 GrDeviceCoordTexture fDstCopy; |
| 593 }; | 593 }; |
| 594 | 594 |
| 595 bool programUnitTest(int maxStages); | 595 bool programUnitTest(int maxStages); |
| 596 | 596 |
| 597 protected: | 597 protected: |
| 598 // Extend access to GrDrawState::convertToPEndeingExec to subclasses. | |
| 599 void convertDrawStateToPendingExec(GrDrawState* ds) { | |
| 600 ds->convertToPendingExec(); | |
| 601 } | |
| 602 | |
| 603 enum GeometrySrcType { | 598 enum GeometrySrcType { |
| 604 kNone_GeometrySrcType, //<! src has not been specified | 599 kNone_GeometrySrcType, //<! src has not been specified |
| 605 kReserved_GeometrySrcType, //<! src was set using reserve*Space | 600 kReserved_GeometrySrcType, //<! src was set using reserve*Space |
| 606 kBuffer_GeometrySrcType //<! src was set using set*SourceToBuffer | 601 kBuffer_GeometrySrcType //<! src was set using set*SourceToBuffer |
| 607 }; | 602 }; |
| 608 | 603 |
| 609 struct GeometrySrcState { | 604 struct GeometrySrcState { |
| 610 GeometrySrcType fVertexSrc; | 605 GeometrySrcType fVertexSrc; |
| 611 union { | 606 union { |
| 612 // valid if src type is buffer | 607 // valid if src type is buffer |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 virtual bool setupClip(const SkRect* devBounds, | 804 virtual bool setupClip(const SkRect* devBounds, |
| 810 GrDrawState::AutoRestoreEffects* are, | 805 GrDrawState::AutoRestoreEffects* are, |
| 811 GrDrawState::AutoRestoreStencil* ars, | 806 GrDrawState::AutoRestoreStencil* ars, |
| 812 GrDrawState*, | 807 GrDrawState*, |
| 813 GrClipMaskManager::ScissorState* scissorState) SK_OVE
RRIDE; | 808 GrClipMaskManager::ScissorState* scissorState) SK_OVE
RRIDE; |
| 814 | 809 |
| 815 typedef GrDrawTarget INHERITED; | 810 typedef GrDrawTarget INHERITED; |
| 816 }; | 811 }; |
| 817 | 812 |
| 818 #endif | 813 #endif |
| OLD | NEW |