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