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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const PipelineInfo&) override; | 84 const PipelineInfo&) override; |
85 void onDrawPaths(const GrPathProcessor*, | 85 void onDrawPaths(const GrPathProcessor*, |
86 const GrPathRange*, | 86 const GrPathRange*, |
87 const void* indices, | 87 const void* indices, |
88 PathIndexType, | 88 PathIndexType, |
89 const float transformValues[], | 89 const float transformValues[], |
90 PathTransformType, | 90 PathTransformType, |
91 int count, | 91 int count, |
92 const GrStencilSettings&, | 92 const GrStencilSettings&, |
93 const PipelineInfo&) override; | 93 const PipelineInfo&) override; |
94 void onCopySurface(GrSurface* dst, | |
95 GrSurface* src, | |
96 const SkIRect& srcRect, | |
97 const SkIPoint& dstPoint) override; | |
98 | 94 |
99 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } | 95 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } |
100 | 96 |
101 StateForPathDraw* SK_WARN_UNUSED_RESULT createStateForPathDraw( | 97 StateForPathDraw* SK_WARN_UNUSED_RESULT createStateForPathDraw( |
102 const GrPrimitiveProcessor*, | 98 const GrPrimitiveProcessor*, |
103 const PipelineInfo&, | 99 const PipelineInfo&, |
104 GrPipelineOptimizations* opts); | 100 GrPipelineOptimizations* opts); |
105 | 101 |
106 // TODO: Use a single allocator for commands and records | 102 // TODO: Use a single allocator for commands and records |
107 enum { | 103 enum { |
(...skipping 10 matching lines...) Expand all Loading... |
118 SkChunkAlloc fPathIndexBuffer; | 114 SkChunkAlloc fPathIndexBuffer; |
119 SkChunkAlloc fPathTransformBuffer; | 115 SkChunkAlloc fPathTransformBuffer; |
120 SkChunkAlloc fPipelineBuffer; | 116 SkChunkAlloc fPipelineBuffer; |
121 uint32_t fDrawID; | 117 uint32_t fDrawID; |
122 SkAutoTUnref<StateForPathDraw> fPrevState; | 118 SkAutoTUnref<StateForPathDraw> fPrevState; |
123 | 119 |
124 typedef GrClipTarget INHERITED; | 120 typedef GrClipTarget INHERITED; |
125 }; | 121 }; |
126 | 122 |
127 #endif | 123 #endif |
OLD | NEW |