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 GrBufferedDrawTarget_DEFINED | 8 #ifndef GrBufferedDrawTarget_DEFINED |
9 #define GrBufferedDrawTarget_DEFINED | 9 #define GrBufferedDrawTarget_DEFINED |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 const PipelineInfo&) override; | 89 const PipelineInfo&) override; |
90 void onDrawPaths(const GrPathProcessor*, | 90 void onDrawPaths(const GrPathProcessor*, |
91 const GrPathRange*, | 91 const GrPathRange*, |
92 const void* indices, | 92 const void* indices, |
93 PathIndexType, | 93 PathIndexType, |
94 const float transformValues[], | 94 const float transformValues[], |
95 PathTransformType, | 95 PathTransformType, |
96 int count, | 96 int count, |
97 const GrStencilSettings&, | 97 const GrStencilSettings&, |
98 const PipelineInfo&) override; | 98 const PipelineInfo&) override; |
99 void onClear(const SkIRect* rect, | 99 void onClear(const SkIRect& rect, |
100 GrColor color, | 100 GrColor color, |
101 bool canIgnoreRect, | |
102 GrRenderTarget* renderTarget) override; | 101 GrRenderTarget* renderTarget) override; |
103 void onCopySurface(GrSurface* dst, | 102 void onCopySurface(GrSurface* dst, |
104 GrSurface* src, | 103 GrSurface* src, |
105 const SkIRect& srcRect, | 104 const SkIRect& srcRect, |
106 const SkIPoint& dstPoint) override; | 105 const SkIPoint& dstPoint) override; |
107 | 106 |
108 // Records any trace markers for a command | 107 // Records any trace markers for a command |
109 void recordTraceMarkersIfNecessary(GrTargetCommands::Cmd*); | 108 void recordTraceMarkersIfNecessary(GrTargetCommands::Cmd*); |
110 SkString getCmdString(int index) const { | 109 SkString getCmdString(int index) const { |
111 SkASSERT(index < fGpuCmdMarkers.count()); | 110 SkASSERT(index < fGpuCmdMarkers.count()); |
(...skipping 22 matching lines...) Expand all Loading... |
134 SkChunkAlloc fPathIndexBuffer; | 133 SkChunkAlloc fPathIndexBuffer; |
135 SkChunkAlloc fPathTransformBuffer; | 134 SkChunkAlloc fPathTransformBuffer; |
136 SkChunkAlloc fPipelineBuffer; | 135 SkChunkAlloc fPipelineBuffer; |
137 uint32_t fDrawID; | 136 uint32_t fDrawID; |
138 SkAutoTUnref<State> fPrevState; | 137 SkAutoTUnref<State> fPrevState; |
139 | 138 |
140 typedef GrClipTarget INHERITED; | 139 typedef GrClipTarget INHERITED; |
141 }; | 140 }; |
142 | 141 |
143 #endif | 142 #endif |
OLD | NEW |