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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 size_t rowBytes) override { | 365 size_t rowBytes) override { |
366 return false; | 366 return false; |
367 } | 367 } |
368 | 368 |
369 bool onWritePixels(GrSurface* surface, | 369 bool onWritePixels(GrSurface* surface, |
370 int left, int top, int width, int height, | 370 int left, int top, int width, int height, |
371 GrPixelConfig config, const SkTArray<GrMipLevel>& texels)
override { | 371 GrPixelConfig config, const SkTArray<GrMipLevel>& texels)
override { |
372 return false; | 372 return false; |
373 } | 373 } |
374 | 374 |
375 bool onTransferPixels(GrTexture* texture, | 375 bool onTransferPixels(GrSurface* surface, |
376 int left, int top, int width, int height, | 376 int left, int top, int width, int height, |
377 GrPixelConfig config, GrBuffer* transferBuffer, | 377 GrPixelConfig config, GrBuffer* transferBuffer, |
378 size_t offset, size_t rowBytes) override { | 378 size_t offset, size_t rowBytes) override { |
379 return false; | 379 return false; |
380 } | 380 } |
381 | 381 |
382 void onResolveRenderTarget(GrRenderTarget* target) override { return; } | 382 void onResolveRenderTarget(GrRenderTarget* target) override { return; } |
383 | 383 |
384 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget*, | 384 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget*, |
385 int width, | 385 int width, |
(...skipping 26 matching lines...) Expand all Loading... |
412 SkASSERT(nullptr == fGpu); | 412 SkASSERT(nullptr == fGpu); |
413 fGpu = new MockGpu(this, options); | 413 fGpu = new MockGpu(this, options); |
414 SkASSERT(fGpu); | 414 SkASSERT(fGpu); |
415 this->initCommon(options); | 415 this->initCommon(options); |
416 | 416 |
417 // 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 |
418 // 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 |
419 // resources in the buffer pools. | 419 // resources in the buffer pools. |
420 fDrawingManager->abandon(); | 420 fDrawingManager->abandon(); |
421 } | 421 } |
OLD | NEW |