| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ~MockGpu() SK_OVERRIDE {} | 56 ~MockGpu() SK_OVERRIDE {} |
| 57 bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const
SK_OVERRIDE { | 57 bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const
SK_OVERRIDE { |
| 58 return true; | 58 return true; |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, | 61 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, |
| 62 int left, int top, | 62 int left, int top, |
| 63 int width, int height, | 63 int width, int height, |
| 64 GrPixelConfig config, | 64 GrPixelConfig config, |
| 65 size_t rowBytes) const SK_OVERRIDE { return f
alse; } | 65 size_t rowBytes) const SK_OVERRIDE { return f
alse; } |
| 66 void buildProgramDesc(const GrOptDrawState&, | 66 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, |
| 67 const GrOptDrawState&, |
| 67 const GrProgramDesc::DescInfo&, | 68 const GrProgramDesc::DescInfo&, |
| 68 GrGpu::DrawType, | 69 GrGpu::DrawType, |
| 69 GrProgramDesc* desc) SK_OVERRIDE {} | 70 const GrBatchTracker&) const SK_OVERRIDE {} |
| 70 | 71 |
| 71 void discard(GrRenderTarget*) SK_OVERRIDE {} | 72 void discard(GrRenderTarget*) SK_OVERRIDE {} |
| 72 | 73 |
| 73 bool canCopySurface(const GrSurface* dst, | 74 bool canCopySurface(const GrSurface* dst, |
| 74 const GrSurface* src, | 75 const GrSurface* src, |
| 75 const SkIRect& srcRect, | 76 const SkIRect& srcRect, |
| 76 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; | 77 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; |
| 77 | 78 |
| 78 bool copySurface(GrSurface* dst, | 79 bool copySurface(GrSurface* dst, |
| 79 GrSurface* src, | 80 GrSurface* src, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 105 | 106 |
| 106 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_OVERRIDE
{ return NULL; } | 107 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_OVERRIDE
{ return NULL; } |
| 107 | 108 |
| 108 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE {
return NULL; } | 109 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE {
return NULL; } |
| 109 | 110 |
| 110 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 111 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, |
| 111 bool canIgnoreRect) SK_OVERRIDE {} | 112 bool canIgnoreRect) SK_OVERRIDE {} |
| 112 | 113 |
| 113 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) SK_OVERRIDE {} | 114 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) SK_OVERRIDE {} |
| 114 | 115 |
| 115 void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) SK_OVERRID
E {} | 116 void onDraw(const DrawArgs&, const GrDrawTarget::DrawInfo&) SK_OVERRIDE {} |
| 116 | 117 |
| 117 void onStencilPath(const GrPath* path, const StencilPathState& state) SK_OVE
RRIDE {} | 118 void onStencilPath(const GrPath* path, const StencilPathState& state) SK_OVE
RRIDE {} |
| 118 | 119 |
| 119 void onDrawPath(const GrOptDrawState&, const GrPath*, const GrStencilSetting
s&) SK_OVERRIDE {} | 120 void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSettings&) SK
_OVERRIDE {} |
| 120 | 121 |
| 121 void onDrawPaths(const GrOptDrawState&, | 122 void onDrawPaths(const DrawArgs&, |
| 122 const GrPathRange*, | 123 const GrPathRange*, |
| 123 const void* indices, | 124 const void* indices, |
| 124 GrDrawTarget::PathIndexType, | 125 GrDrawTarget::PathIndexType, |
| 125 const float transformValues[], | 126 const float transformValues[], |
| 126 GrDrawTarget::PathTransformType, | 127 GrDrawTarget::PathTransformType, |
| 127 int count, | 128 int count, |
| 128 const GrStencilSettings&) SK_OVERRIDE {} | 129 const GrStencilSettings&) SK_OVERRIDE {} |
| 129 | 130 |
| 130 bool onReadPixels(GrRenderTarget* target, | 131 bool onReadPixels(GrRenderTarget* target, |
| 131 int left, int top, int width, int height, | 132 int left, int top, int width, int height, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 179 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 179 // resources in the buffer pools. | 180 // resources in the buffer pools. |
| 180 SkDELETE(fDrawBuffer); | 181 SkDELETE(fDrawBuffer); |
| 181 SkDELETE(fDrawBufferVBAllocPool); | 182 SkDELETE(fDrawBufferVBAllocPool); |
| 182 SkDELETE(fDrawBufferIBAllocPool); | 183 SkDELETE(fDrawBufferIBAllocPool); |
| 183 | 184 |
| 184 fDrawBuffer = NULL; | 185 fDrawBuffer = NULL; |
| 185 fDrawBufferVBAllocPool = NULL; | 186 fDrawBufferVBAllocPool = NULL; |
| 186 fDrawBufferIBAllocPool = NULL; | 187 fDrawBufferIBAllocPool = NULL; |
| 187 } | 188 } |
| OLD | NEW |