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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 281 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
282 GrWrapOwnership) override { | 282 GrWrapOwnership) override { |
283 return nullptr; | 283 return nullptr; |
284 } | 284 } |
285 | 285 |
286 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r
eturn nullptr; } | 286 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r
eturn nullptr; } |
287 | 287 |
288 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret
urn nullptr; } | 288 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret
urn nullptr; } |
289 | 289 |
| 290 GrTransferBuffer* onCreateTransferBuffer(size_t, TransferType) override { re
turn nullptr; } |
| 291 |
290 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override {
} | 292 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override {
} |
291 | 293 |
292 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} | 294 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} |
293 | 295 |
294 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} | 296 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} |
295 | 297 |
296 bool onReadPixels(GrSurface* surface, | 298 bool onReadPixels(GrSurface* surface, |
297 int left, int top, int width, int height, | 299 int left, int top, int width, int height, |
298 GrPixelConfig, | 300 GrPixelConfig, |
299 void* buffer, | 301 void* buffer, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 SkASSERT(nullptr == fGpu); | 343 SkASSERT(nullptr == fGpu); |
342 fGpu = new MockGpu(this, options); | 344 fGpu = new MockGpu(this, options); |
343 SkASSERT(fGpu); | 345 SkASSERT(fGpu); |
344 this->initCommon(options); | 346 this->initCommon(options); |
345 | 347 |
346 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 348 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
347 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 349 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
348 // resources in the buffer pools. | 350 // resources in the buffer pools. |
349 fDrawingManager->abandon(); | 351 fDrawingManager->abandon(); |
350 } | 352 } |
OLD | NEW |