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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 const GrStencilSettings&, | 294 const GrStencilSettings&, |
295 int* effectiveSampleCnt, | 295 int* effectiveSampleCnt, |
296 SkAutoTDeleteArray<SkPoint>*) override { | 296 SkAutoTDeleteArray<SkPoint>*) override { |
297 *effectiveSampleCnt = rt->desc().fSampleCnt; | 297 *effectiveSampleCnt = rt->desc().fSampleCnt; |
298 } | 298 } |
299 | 299 |
300 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 300 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { |
301 return false; | 301 return false; |
302 } | 302 } |
303 | 303 |
| 304 GrGpuCommandBuffer* createCommandBuffer(const GrRenderTarget& target, |
| 305 GrGpuCommandBuffer::LoadAndStoreOp c
olorOp, |
| 306 GrColor colorClear, |
| 307 GrGpuCommandBuffer::LoadAndStoreOp s
tencilOp, |
| 308 GrColor stencilClear) override { |
| 309 return nullptr; |
| 310 } |
| 311 |
304 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; | 312 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; |
305 | 313 |
306 private: | 314 private: |
307 void onResetContext(uint32_t resetBits) override {} | 315 void onResetContext(uint32_t resetBits) override {} |
308 | 316 |
309 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 317 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
310 | 318 |
311 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, | 319 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, |
312 const SkTArray<GrMipLevel>& texels) override { | 320 const SkTArray<GrMipLevel>& texels) override { |
313 return nullptr; | 321 return nullptr; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 SkASSERT(nullptr == fGpu); | 405 SkASSERT(nullptr == fGpu); |
398 fGpu = new MockGpu(this, options); | 406 fGpu = new MockGpu(this, options); |
399 SkASSERT(fGpu); | 407 SkASSERT(fGpu); |
400 this->initCommon(options); | 408 this->initCommon(options); |
401 | 409 |
402 // 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 |
403 // 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 |
404 // resources in the buffer pools. | 412 // resources in the buffer pools. |
405 fDrawingManager->abandon(); | 413 fDrawingManager->abandon(); |
406 } | 414 } |
OLD | NEW |