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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // overrides from GrDrawTarget | 75 // overrides from GrDrawTarget |
76 virtual bool geometryHints(int* vertexCount, | 76 virtual bool geometryHints(int* vertexCount, |
77 int* indexCount) const SK_OVERRIDE; | 77 int* indexCount) const SK_OVERRIDE; |
78 virtual void clear(const SkIRect* rect, | 78 virtual void clear(const SkIRect* rect, |
79 GrColor color, | 79 GrColor color, |
80 bool canIgnoreRect, | 80 bool canIgnoreRect, |
81 GrRenderTarget* renderTarget) SK_OVERRIDE; | 81 GrRenderTarget* renderTarget) SK_OVERRIDE; |
82 | 82 |
83 virtual void discard(GrRenderTarget*) SK_OVERRIDE; | 83 virtual void discard(GrRenderTarget*) SK_OVERRIDE; |
84 | 84 |
85 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des
c) SK_OVERRIDE; | 85 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* des
c) SK_OVERRIDE; |
86 | 86 |
87 protected: | 87 protected: |
88 virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; | 88 virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; |
89 | 89 |
90 private: | 90 private: |
91 enum { | 91 enum { |
92 kDraw_Cmd = 1, | 92 kDraw_Cmd = 1, |
93 kStencilPath_Cmd = 2, | 93 kStencilPath_Cmd = 2, |
94 kSetState_Cmd = 3, | 94 kSetState_Cmd = 3, |
95 kSetClip_Cmd = 4, | 95 kSetClip_Cmd = 4, |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateS
tack; | 329 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateS
tack; |
330 | 330 |
331 GeoPoolStateStack fGeoPoolStateStack; | 331 GeoPoolStateStack fGeoPoolStateStack; |
332 bool fFlushing; | 332 bool fFlushing; |
333 uint32_t fDrawID; | 333 uint32_t fDrawID; |
334 | 334 |
335 typedef GrDrawTarget INHERITED; | 335 typedef GrDrawTarget INHERITED; |
336 }; | 336 }; |
337 | 337 |
338 #endif | 338 #endif |
OLD | NEW |