| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 virtual bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, | 62 virtual bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, |
| 63 int left, int top, | 63 int left, int top, |
| 64 int width, int height, | 64 int width, int height, |
| 65 GrPixelConfig config, | 65 GrPixelConfig config, |
| 66 size_t rowBytes) const SK_OVERRIDE {
return false; } | 66 size_t rowBytes) const SK_OVERRIDE {
return false; } |
| 67 virtual void buildProgramDesc(const GrOptDrawState&, | 67 virtual void buildProgramDesc(const GrOptDrawState&, |
| 68 const GrProgramDesc::DescInfo&, | 68 const GrProgramDesc::DescInfo&, |
| 69 GrGpu::DrawType, | 69 GrGpu::DrawType, |
| 70 const GrDeviceCoordTexture* dstCopy, | |
| 71 GrProgramDesc* desc) SK_OVERRIDE { } | 70 GrProgramDesc* desc) SK_OVERRIDE { } |
| 72 | 71 |
| 73 virtual void discard(GrRenderTarget*) SK_OVERRIDE { } | 72 virtual void discard(GrRenderTarget*) SK_OVERRIDE { } |
| 74 | 73 |
| 75 virtual bool canCopySurface(const GrSurface* dst, | 74 virtual bool canCopySurface(const GrSurface* dst, |
| 76 const GrSurface* src, | 75 const GrSurface* src, |
| 77 const SkIRect& srcRect, | 76 const SkIRect& srcRect, |
| 78 const SkIPoint& dstPoint) SK_OVERRIDE { return f
alse; }; | 77 const SkIPoint& dstPoint) SK_OVERRIDE { return f
alse; }; |
| 79 | 78 |
| 80 virtual bool copySurface(GrSurface* dst, | 79 virtual bool copySurface(GrSurface* dst, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 140 |
| 142 virtual bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, | 141 virtual bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, |
| 143 int height) SK_OVERRIDE { | 142 int height) SK_OVERRIDE { |
| 144 return false; | 143 return false; |
| 145 } | 144 } |
| 146 | 145 |
| 147 virtual bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTar
get*) SK_OVERRIDE { | 146 virtual bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTar
get*) SK_OVERRIDE { |
| 148 return false; | 147 return false; |
| 149 } | 148 } |
| 150 | 149 |
| 151 virtual bool flushGraphicsState(const GrOptDrawState&, | 150 virtual bool flushGraphicsState(const GrOptDrawState&, DrawType) SK_OVERRID
E { |
| 152 DrawType, | |
| 153 const GrDeviceCoordTexture* dstCopy) SK_OVE
RRIDE { | |
| 154 return false; | 151 return false; |
| 155 } | 152 } |
| 156 | 153 |
| 157 virtual void clearStencil(GrRenderTarget* target) SK_OVERRIDE { } | 154 virtual void clearStencil(GrRenderTarget* target) SK_OVERRIDE { } |
| 158 | 155 |
| 159 virtual void didAddGpuTraceMarker() SK_OVERRIDE { } | 156 virtual void didAddGpuTraceMarker() SK_OVERRIDE { } |
| 160 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE { } | 157 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE { } |
| 161 | 158 |
| 162 typedef GrGpu INHERITED; | 159 typedef GrGpu INHERITED; |
| 163 }; | 160 }; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 179 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 176 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 180 // resources in the buffer pools. | 177 // resources in the buffer pools. |
| 181 SkDELETE(fDrawBuffer); | 178 SkDELETE(fDrawBuffer); |
| 182 SkDELETE(fDrawBufferVBAllocPool); | 179 SkDELETE(fDrawBufferVBAllocPool); |
| 183 SkDELETE(fDrawBufferIBAllocPool); | 180 SkDELETE(fDrawBufferIBAllocPool); |
| 184 | 181 |
| 185 fDrawBuffer = NULL; | 182 fDrawBuffer = NULL; |
| 186 fDrawBufferVBAllocPool = NULL; | 183 fDrawBufferVBAllocPool = NULL; |
| 187 fDrawBufferIBAllocPool = NULL; | 184 fDrawBufferIBAllocPool = NULL; |
| 188 } | 185 } |
| OLD | NEW |