| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 196 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
| 197 GrWrapOwnership) override { | 197 GrWrapOwnership) override { |
| 198 return NULL; | 198 return NULL; |
| 199 } | 199 } |
| 200 | 200 |
| 201 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r
eturn NULL; } | 201 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r
eturn NULL; } |
| 202 | 202 |
| 203 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret
urn NULL; } | 203 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret
urn NULL; } |
| 204 | 204 |
| 205 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 205 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override {
} |
| 206 bool canIgnoreRect) override {} | |
| 207 | 206 |
| 208 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} | 207 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} |
| 209 | 208 |
| 210 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} | 209 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} |
| 211 | 210 |
| 212 bool onReadPixels(GrSurface* surface, | 211 bool onReadPixels(GrSurface* surface, |
| 213 int left, int top, int width, int height, | 212 int left, int top, int width, int height, |
| 214 GrPixelConfig, | 213 GrPixelConfig, |
| 215 void* buffer, | 214 void* buffer, |
| 216 size_t rowBytes) override { | 215 size_t rowBytes) override { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 SkASSERT(NULL == fGpu); | 262 SkASSERT(NULL == fGpu); |
| 264 fGpu = SkNEW_ARGS(MockGpu, (this, options)); | 263 fGpu = SkNEW_ARGS(MockGpu, (this, options)); |
| 265 SkASSERT(fGpu); | 264 SkASSERT(fGpu); |
| 266 this->initCommon(); | 265 this->initCommon(); |
| 267 | 266 |
| 268 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 267 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 269 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 268 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 270 // resources in the buffer pools. | 269 // resources in the buffer pools. |
| 271 fDrawingMgr.abandon(); | 270 fDrawingMgr.abandon(); |
| 272 } | 271 } |
| OLD | NEW |