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