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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 bool onCopySurface(GrSurface* dst, | 299 bool onCopySurface(GrSurface* dst, |
300 GrSurface* src, | 300 GrSurface* src, |
301 const SkIRect& srcRect, | 301 const SkIRect& srcRect, |
302 const SkIPoint& dstPoint) override { return false; }; | 302 const SkIPoint& dstPoint) override { return false; }; |
303 | 303 |
304 void onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&, | 304 void onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&, |
305 int* effectiveSampleCnt, SamplePattern*) override
{ | 305 int* effectiveSampleCnt, SamplePattern*) override
{ |
306 *effectiveSampleCnt = rt->desc().fSampleCnt; | 306 *effectiveSampleCnt = rt->desc().fSampleCnt; |
307 } | 307 } |
308 | 308 |
309 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 309 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons
t override { |
310 return false; | 310 return false; |
311 } | 311 } |
312 | 312 |
313 GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target, | 313 GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target, |
314 const GrGpuCommandBuffer::LoadAndSto
reInfo&, | 314 const GrGpuCommandBuffer::LoadAndSto
reInfo&, |
315 const GrGpuCommandBuffer::LoadAndSto
reInfo&) override { | 315 const GrGpuCommandBuffer::LoadAndSto
reInfo&) override { |
316 return nullptr; | 316 return nullptr; |
317 } | 317 } |
318 | 318 |
319 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; | 319 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 SkASSERT(nullptr == fGpu); | 405 SkASSERT(nullptr == fGpu); |
406 fGpu = new MockGpu(this, options); | 406 fGpu = new MockGpu(this, options); |
407 SkASSERT(fGpu); | 407 SkASSERT(fGpu); |
408 this->initCommon(options); | 408 this->initCommon(options); |
409 | 409 |
410 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 410 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
411 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 411 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
412 // resources in the buffer pools. | 412 // resources in the buffer pools. |
413 fDrawingManager->abandon(); | 413 fDrawingManager->abandon(); |
414 } | 414 } |
OLD | NEW |