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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 void buildProgramDesc(GrProgramDesc*, const GrPrimitiveProcessor&, | 309 void buildProgramDesc(GrProgramDesc*, const GrPrimitiveProcessor&, |
310 const GrPipeline&) const override {} | 310 const GrPipeline&) const override {} |
311 | 311 |
312 void discard(GrRenderTarget*) override {} | 312 void discard(GrRenderTarget*) override {} |
313 | 313 |
314 bool onCopySurface(GrSurface* dst, | 314 bool onCopySurface(GrSurface* dst, |
315 GrSurface* src, | 315 GrSurface* src, |
316 const SkIRect& srcRect, | 316 const SkIRect& srcRect, |
317 const SkIPoint& dstPoint) override { return false; }; | 317 const SkIPoint& dstPoint) override { return false; }; |
318 | 318 |
| 319 void onGetMultisampleSpecs(GrRenderTarget* rt, |
| 320 const GrStencilSettings&, |
| 321 int* effectiveSampleCnt, |
| 322 SkAutoTDeleteArray<SkPoint>*) override { |
| 323 *effectiveSampleCnt = rt->desc().fSampleCnt; |
| 324 } |
| 325 |
319 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 326 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { |
320 return false; | 327 return false; |
321 } | 328 } |
322 | 329 |
323 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; | 330 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; |
324 | 331 |
325 private: | 332 private: |
326 void onResetContext(uint32_t resetBits) override {} | 333 void onResetContext(uint32_t resetBits) override {} |
327 | 334 |
328 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 335 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 SkASSERT(nullptr == fGpu); | 423 SkASSERT(nullptr == fGpu); |
417 fGpu = new MockGpu(this, options); | 424 fGpu = new MockGpu(this, options); |
418 SkASSERT(fGpu); | 425 SkASSERT(fGpu); |
419 this->initCommon(options); | 426 this->initCommon(options); |
420 | 427 |
421 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 428 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
422 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 429 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
423 // resources in the buffer pools. | 430 // resources in the buffer pools. |
424 fDrawingManager->abandon(); | 431 fDrawingManager->abandon(); |
425 } | 432 } |
OLD | NEW |