| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 } | 332 } |
| 333 | 333 |
| 334 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, | 334 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, |
| 335 GrWrapOwnership) override { return nullptr;
} | 335 GrWrapOwnership) override { return nullptr;
} |
| 336 | 336 |
| 337 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 337 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
| 338 GrWrapOwnership) override { | 338 GrWrapOwnership) override { |
| 339 return nullptr; | 339 return nullptr; |
| 340 } | 340 } |
| 341 | 341 |
| 342 void onComputeBackendTextureKeyForWrapAsRenderTarget(const GrBackendTextureD
esc&, |
| 343 GrUniqueKey*) override
{ |
| 344 } |
| 345 bool onRewrapRenderTargetWithBackendTexture(const GrBackendTextureDesc&, |
| 346 GrRenderTarget*) override { |
| 347 return nullptr; |
| 348 } |
| 349 |
| 342 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { | 350 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { |
| 343 return nullptr; | 351 return nullptr; |
| 344 } | 352 } |
| 345 | 353 |
| 346 GrBuffer* onCreateBuffer(GrBufferType, size_t, GrAccessPattern) override { r
eturn nullptr; } | 354 GrBuffer* onCreateBuffer(GrBufferType, size_t, GrAccessPattern) override { r
eturn nullptr; } |
| 347 | 355 |
| 348 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override {
} | 356 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override {
} |
| 349 | 357 |
| 350 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} | 358 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} |
| 351 | 359 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 SkASSERT(nullptr == fGpu); | 416 SkASSERT(nullptr == fGpu); |
| 409 fGpu = new MockGpu(this, options); | 417 fGpu = new MockGpu(this, options); |
| 410 SkASSERT(fGpu); | 418 SkASSERT(fGpu); |
| 411 this->initCommon(options); | 419 this->initCommon(options); |
| 412 | 420 |
| 413 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 421 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 414 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 422 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 415 // resources in the buffer pools. | 423 // resources in the buffer pools. |
| 416 fDrawingManager->abandon(); | 424 fDrawingManager->abandon(); |
| 417 } | 425 } |
| OLD | NEW |