OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "GrTest.h" | 8 #include "GrTest.h" |
9 | 9 |
10 #include "GrBatchAtlas.h" | 10 #include "GrBatchAtlas.h" |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 337 |
338 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 338 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
339 GrWrapOwnership) override { | 339 GrWrapOwnership) override { |
340 return nullptr; | 340 return nullptr; |
341 } | 341 } |
342 | 342 |
343 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { | 343 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { |
344 return nullptr; | 344 return nullptr; |
345 } | 345 } |
346 | 346 |
347 GrBuffer* onCreateBuffer(GrBufferType, size_t, GrAccessPattern) override { r
eturn nullptr; } | 347 GrBuffer* onCreateBuffer(size_t, GrBufferType, GrAccessPattern) override { r
eturn nullptr; } |
348 | 348 |
349 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override {
} | 349 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override {
} |
350 | 350 |
351 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} | 351 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} |
352 | 352 |
353 void onDraw(const GrPipeline&, | 353 void onDraw(const GrPipeline&, |
354 const GrPrimitiveProcessor&, | 354 const GrPrimitiveProcessor&, |
355 const GrMesh*, | 355 const GrMesh*, |
356 int meshCount) override {} | 356 int meshCount) override {} |
357 | 357 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 SkASSERT(nullptr == fGpu); | 409 SkASSERT(nullptr == fGpu); |
410 fGpu = new MockGpu(this, options); | 410 fGpu = new MockGpu(this, options); |
411 SkASSERT(fGpu); | 411 SkASSERT(fGpu); |
412 this->initCommon(options); | 412 this->initCommon(options); |
413 | 413 |
414 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 414 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
415 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 415 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
416 // resources in the buffer pools. | 416 // resources in the buffer pools. |
417 fDrawingManager->abandon(); | 417 fDrawingManager->abandon(); |
418 } | 418 } |
OLD | NEW |