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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 return false; | 330 return false; |
331 } | 331 } |
332 | 332 |
333 bool onWritePixels(GrSurface* surface, | 333 bool onWritePixels(GrSurface* surface, |
334 int left, int top, int width, int height, | 334 int left, int top, int width, int height, |
335 GrPixelConfig config, const void* buffer, | 335 GrPixelConfig config, const void* buffer, |
336 size_t rowBytes) override { | 336 size_t rowBytes) override { |
337 return false; | 337 return false; |
338 } | 338 } |
339 | 339 |
| 340 bool onTransferPixels(GrSurface* surface, |
| 341 int left, int top, int width, int height, |
| 342 GrPixelConfig config, GrTransferBuffer* buffer, |
| 343 size_t offset, size_t rowBytes) override { |
| 344 return false; |
| 345 } |
| 346 |
340 void onResolveRenderTarget(GrRenderTarget* target) override { return; } | 347 void onResolveRenderTarget(GrRenderTarget* target) override { return; } |
341 | 348 |
342 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget*, | 349 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget*, |
343 int width, | 350 int width, |
344 int height) over
ride { | 351 int height) over
ride { |
345 return nullptr; | 352 return nullptr; |
346 } | 353 } |
347 | 354 |
348 void clearStencil(GrRenderTarget* target) override {} | 355 void clearStencil(GrRenderTarget* target) override {} |
349 | 356 |
(...skipping 20 matching lines...) Expand all Loading... |
370 SkASSERT(nullptr == fGpu); | 377 SkASSERT(nullptr == fGpu); |
371 fGpu = new MockGpu(this, options); | 378 fGpu = new MockGpu(this, options); |
372 SkASSERT(fGpu); | 379 SkASSERT(fGpu); |
373 this->initCommon(options); | 380 this->initCommon(options); |
374 | 381 |
375 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 382 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
376 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 383 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
377 // resources in the buffer pools. | 384 // resources in the buffer pools. |
378 fDrawingManager->abandon(); | 385 fDrawingManager->abandon(); |
379 } | 386 } |
OLD | NEW |