| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 bool onWriteTexturePixels(GrTexture* texture, | 223 bool onWriteTexturePixels(GrTexture* texture, |
| 224 int left, int top, int width, int height, | 224 int left, int top, int width, int height, |
| 225 GrPixelConfig config, const void* buffer, | 225 GrPixelConfig config, const void* buffer, |
| 226 size_t rowBytes) SK_OVERRIDE { | 226 size_t rowBytes) SK_OVERRIDE { |
| 227 return false; | 227 return false; |
| 228 } | 228 } |
| 229 | 229 |
| 230 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; } | 230 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; } |
| 231 | 231 |
| 232 bool createStencilBufferForRenderTarget(GrRenderTarget*, bool budgeted, | 232 bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int heig
ht) SK_OVERRIDE { |
| 233 int width, int height) SK_OVERRIDE { | |
| 234 return false; | 233 return false; |
| 235 } | 234 } |
| 236 | 235 |
| 237 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK
_OVERRIDE { | 236 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK
_OVERRIDE { |
| 238 return false; | 237 return false; |
| 239 } | 238 } |
| 240 | 239 |
| 241 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {} | 240 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {} |
| 242 | 241 |
| 243 void didAddGpuTraceMarker() SK_OVERRIDE {} | 242 void didAddGpuTraceMarker() SK_OVERRIDE {} |
| (...skipping 20 matching lines...) Expand all Loading... |
| 264 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 263 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 265 // resources in the buffer pools. | 264 // resources in the buffer pools. |
| 266 SkDELETE(fDrawBuffer); | 265 SkDELETE(fDrawBuffer); |
| 267 SkDELETE(fDrawBufferVBAllocPool); | 266 SkDELETE(fDrawBufferVBAllocPool); |
| 268 SkDELETE(fDrawBufferIBAllocPool); | 267 SkDELETE(fDrawBufferIBAllocPool); |
| 269 | 268 |
| 270 fDrawBuffer = NULL; | 269 fDrawBuffer = NULL; |
| 271 fDrawBufferVBAllocPool = NULL; | 270 fDrawBufferVBAllocPool = NULL; |
| 272 fDrawBufferIBAllocPool = NULL; | 271 fDrawBufferIBAllocPool = NULL; |
| 273 } | 272 } |
| OLD | NEW |