| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 return true; | 135 return true; |
| 136 } | 136 } |
| 137 | 137 |
| 138 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, | 138 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, |
| 139 int left, int top, | 139 int left, int top, |
| 140 int width, int height, | 140 int width, int height, |
| 141 GrPixelConfig config, | 141 GrPixelConfig config, |
| 142 size_t rowBytes) const SK_OVERRIDE { return f
alse; } | 142 size_t rowBytes) const SK_OVERRIDE { return f
alse; } |
| 143 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, | 143 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, |
| 144 const GrPipeline&, | 144 const GrPipeline&, |
| 145 const GrProgramDesc::DescInfo&, |
| 145 const GrBatchTracker&) const SK_OVERRIDE {} | 146 const GrBatchTracker&) const SK_OVERRIDE {} |
| 146 | 147 |
| 147 void discard(GrRenderTarget*) SK_OVERRIDE {} | 148 void discard(GrRenderTarget*) SK_OVERRIDE {} |
| 148 | 149 |
| 149 bool canCopySurface(const GrSurface* dst, | 150 bool canCopySurface(const GrSurface* dst, |
| 150 const GrSurface* src, | 151 const GrSurface* src, |
| 151 const SkIRect& srcRect, | 152 const SkIRect& srcRect, |
| 152 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; | 153 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; |
| 153 | 154 |
| 154 bool copySurface(GrSurface* dst, | 155 bool copySurface(GrSurface* dst, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 256 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 256 // resources in the buffer pools. | 257 // resources in the buffer pools. |
| 257 SkDELETE(fDrawBuffer); | 258 SkDELETE(fDrawBuffer); |
| 258 SkDELETE(fDrawBufferVBAllocPool); | 259 SkDELETE(fDrawBufferVBAllocPool); |
| 259 SkDELETE(fDrawBufferIBAllocPool); | 260 SkDELETE(fDrawBufferIBAllocPool); |
| 260 | 261 |
| 261 fDrawBuffer = NULL; | 262 fDrawBuffer = NULL; |
| 262 fDrawBufferVBAllocPool = NULL; | 263 fDrawBufferVBAllocPool = NULL; |
| 263 fDrawBufferIBAllocPool = NULL; | 264 fDrawBufferIBAllocPool = NULL; |
| 264 } | 265 } |
| OLD | NEW |