OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrTest.h" | 9 #include "GrTest.h" |
10 | 10 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 bool onWriteTexturePixels(GrTexture* texture, | 138 bool onWriteTexturePixels(GrTexture* texture, |
139 int left, int top, int width, int height, | 139 int left, int top, int width, int height, |
140 GrPixelConfig config, const void* buffer, | 140 GrPixelConfig config, const void* buffer, |
141 size_t rowBytes) SK_OVERRIDE { | 141 size_t rowBytes) SK_OVERRIDE { |
142 return false; | 142 return false; |
143 } | 143 } |
144 | 144 |
145 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; } | 145 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; } |
146 | 146 |
147 bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int heig
ht) SK_OVERRIDE { | 147 bool createStencilBufferForRenderTarget(GrRenderTarget*, bool budgeted, |
| 148 int width, int height) SK_OVERRIDE { |
148 return false; | 149 return false; |
149 } | 150 } |
150 | 151 |
151 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK
_OVERRIDE { | 152 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK
_OVERRIDE { |
152 return false; | 153 return false; |
153 } | 154 } |
154 | 155 |
155 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {} | 156 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {} |
156 | 157 |
157 void didAddGpuTraceMarker() SK_OVERRIDE {} | 158 void didAddGpuTraceMarker() SK_OVERRIDE {} |
(...skipping 20 matching lines...) Expand all Loading... |
178 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 179 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
179 // resources in the buffer pools. | 180 // resources in the buffer pools. |
180 SkDELETE(fDrawBuffer); | 181 SkDELETE(fDrawBuffer); |
181 SkDELETE(fDrawBufferVBAllocPool); | 182 SkDELETE(fDrawBufferVBAllocPool); |
182 SkDELETE(fDrawBufferIBAllocPool); | 183 SkDELETE(fDrawBufferIBAllocPool); |
183 | 184 |
184 fDrawBuffer = NULL; | 185 fDrawBuffer = NULL; |
185 fDrawBufferVBAllocPool = NULL; | 186 fDrawBufferVBAllocPool = NULL; |
186 fDrawBufferIBAllocPool = NULL; | 187 fDrawBufferIBAllocPool = NULL; |
187 } | 188 } |
OLD | NEW |