| 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 #include "GrContextOptions.h" | 10 #include "GrContextOptions.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret
urn NULL; } | 195 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret
urn NULL; } |
| 196 | 196 |
| 197 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 197 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, |
| 198 bool canIgnoreRect) override {} | 198 bool canIgnoreRect) override {} |
| 199 | 199 |
| 200 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} | 200 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override {} |
| 201 | 201 |
| 202 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} | 202 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} |
| 203 | 203 |
| 204 void onStencilPath(const GrPath* path, const StencilPathState& state) overri
de {} | |
| 205 | |
| 206 void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSettings&) ov
erride {} | |
| 207 | |
| 208 void onDrawPaths(const DrawArgs&, | |
| 209 const GrPathRange*, | |
| 210 const void* indices, | |
| 211 GrDrawTarget::PathIndexType, | |
| 212 const float transformValues[], | |
| 213 GrDrawTarget::PathTransformType, | |
| 214 int count, | |
| 215 const GrStencilSettings&) override {} | |
| 216 | |
| 217 bool onReadPixels(GrRenderTarget* target, | 204 bool onReadPixels(GrRenderTarget* target, |
| 218 int left, int top, int width, int height, | 205 int left, int top, int width, int height, |
| 219 GrPixelConfig, | 206 GrPixelConfig, |
| 220 void* buffer, | 207 void* buffer, |
| 221 size_t rowBytes) override { | 208 size_t rowBytes) override { |
| 222 return false; | 209 return false; |
| 223 } | 210 } |
| 224 | 211 |
| 225 bool onWriteTexturePixels(GrTexture* texture, | 212 bool onWriteTexturePixels(GrTexture* texture, |
| 226 int left, int top, int width, int height, | 213 int left, int top, int width, int height, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 SkASSERT(NULL == fGpu); | 247 SkASSERT(NULL == fGpu); |
| 261 fGpu = SkNEW_ARGS(MockGpu, (this, options)); | 248 fGpu = SkNEW_ARGS(MockGpu, (this, options)); |
| 262 SkASSERT(fGpu); | 249 SkASSERT(fGpu); |
| 263 this->initCommon(); | 250 this->initCommon(); |
| 264 | 251 |
| 265 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 252 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 266 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 253 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 267 // resources in the buffer pools. | 254 // resources in the buffer pools. |
| 268 fDrawingMgr.abandon(); | 255 fDrawingMgr.abandon(); |
| 269 } | 256 } |
| OLD | NEW |