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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 void buildProgramDesc(GrProgramDesc*, const GrPrimitiveProcessor&, | 303 void buildProgramDesc(GrProgramDesc*, const GrPrimitiveProcessor&, |
304 const GrPipeline&) const override {} | 304 const GrPipeline&) const override {} |
305 | 305 |
306 void discard(GrRenderTarget*) override {} | 306 void discard(GrRenderTarget*) override {} |
307 | 307 |
308 bool onCopySurface(GrSurface* dst, | 308 bool onCopySurface(GrSurface* dst, |
309 GrSurface* src, | 309 GrSurface* src, |
310 const SkIRect& srcRect, | 310 const SkIRect& srcRect, |
311 const SkIPoint& dstPoint) override { return false; }; | 311 const SkIPoint& dstPoint) override { return false; }; |
312 | 312 |
| 313 void onGetMultisampleSpecs(GrRenderTarget* rt, |
| 314 const GrStencilSettings&, |
| 315 int* effectiveSampleCnt, |
| 316 SamplePattern*) override { |
| 317 *effectiveSampleCnt = rt->desc().fSampleCnt; |
| 318 } |
| 319 |
313 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 320 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { |
314 return false; | 321 return false; |
315 } | 322 } |
316 | 323 |
317 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; | 324 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; |
318 | 325 |
319 private: | 326 private: |
320 void onResetContext(uint32_t resetBits) override {} | 327 void onResetContext(uint32_t resetBits) override {} |
321 | 328 |
322 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 329 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 SkASSERT(nullptr == fGpu); | 413 SkASSERT(nullptr == fGpu); |
407 fGpu = new MockGpu(this, options); | 414 fGpu = new MockGpu(this, options); |
408 SkASSERT(fGpu); | 415 SkASSERT(fGpu); |
409 this->initCommon(options); | 416 this->initCommon(options); |
410 | 417 |
411 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 418 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
412 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 419 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
413 // resources in the buffer pools. | 420 // resources in the buffer pools. |
414 fDrawingManager->abandon(); | 421 fDrawingManager->abandon(); |
415 } | 422 } |
OLD | NEW |