| 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 GrInOrderDrawBuffer_DEFINED | 8 #ifndef GrInOrderDrawBuffer_DEFINED |
| 9 #define GrInOrderDrawBuffer_DEFINED | 9 #define GrInOrderDrawBuffer_DEFINED |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void flush(); | 64 void flush(); |
| 65 | 65 |
| 66 // tracking for draws | 66 // tracking for draws |
| 67 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, fDrawID); } | 67 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, fDrawID); } |
| 68 | 68 |
| 69 // overrides from GrDrawTarget | 69 // overrides from GrDrawTarget |
| 70 virtual bool geometryHints(int* vertexCount, | 70 virtual bool geometryHints(int* vertexCount, |
| 71 int* indexCount) const SK_OVERRIDE; | 71 int* indexCount) const SK_OVERRIDE; |
| 72 virtual void clear(const SkIRect* rect, | 72 virtual void clear(const SkIRect* rect, |
| 73 GrColor color, | 73 GrColor color, |
| 74 bool canIgnoreRect, |
| 74 GrRenderTarget* renderTarget = NULL) SK_OVERRIDE; | 75 GrRenderTarget* renderTarget = NULL) SK_OVERRIDE; |
| 75 | 76 |
| 76 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des
c) SK_OVERRIDE; | 77 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des
c) SK_OVERRIDE; |
| 77 | 78 |
| 78 protected: | 79 protected: |
| 79 virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; | 80 virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 enum Cmd { | 83 enum Cmd { |
| 83 kDraw_Cmd = 1, | 84 kDraw_Cmd = 1, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 110 SkPath::FillType fFill; | 111 SkPath::FillType fFill; |
| 111 GrDeviceCoordTexture fDstCopy; | 112 GrDeviceCoordTexture fDstCopy; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 struct Clear : public ::SkNoncopyable { | 115 struct Clear : public ::SkNoncopyable { |
| 115 Clear() : fRenderTarget(NULL) {} | 116 Clear() : fRenderTarget(NULL) {} |
| 116 ~Clear() { SkSafeUnref(fRenderTarget); } | 117 ~Clear() { SkSafeUnref(fRenderTarget); } |
| 117 | 118 |
| 118 SkIRect fRect; | 119 SkIRect fRect; |
| 119 GrColor fColor; | 120 GrColor fColor; |
| 121 bool fCanIgnoreRect; |
| 120 GrRenderTarget* fRenderTarget; | 122 GrRenderTarget* fRenderTarget; |
| 121 }; | 123 }; |
| 122 | 124 |
| 123 struct CopySurface : public ::SkNoncopyable { | 125 struct CopySurface : public ::SkNoncopyable { |
| 124 SkAutoTUnref<GrSurface> fDst; | 126 SkAutoTUnref<GrSurface> fDst; |
| 125 SkAutoTUnref<GrSurface> fSrc; | 127 SkAutoTUnref<GrSurface> fSrc; |
| 126 SkIRect fSrcRect; | 128 SkIRect fSrcRect; |
| 127 SkIPoint fDstPoint; | 129 SkIPoint fDstPoint; |
| 128 }; | 130 }; |
| 129 | 131 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 240 |
| 239 virtual bool isIssued(uint32_t drawID) { return drawID != fDrawID; } | 241 virtual bool isIssued(uint32_t drawID) { return drawID != fDrawID; } |
| 240 | 242 |
| 241 bool fFlushing; | 243 bool fFlushing; |
| 242 uint32_t fDrawID; | 244 uint32_t fDrawID; |
| 243 | 245 |
| 244 typedef GrDrawTarget INHERITED; | 246 typedef GrDrawTarget INHERITED; |
| 245 }; | 247 }; |
| 246 | 248 |
| 247 #endif | 249 #endif |
| OLD | NEW |