| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r
eturn NULL; } | 193 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r
eturn NULL; } |
| 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 GrVertices&) override {} | 202 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} |
| 203 | 203 |
| 204 void onStencilPath(const GrPath* path, const StencilPathState& state) overri
de {} | 204 void onStencilPath(const GrPath* path, const StencilPathState& state) overri
de {} |
| 205 | 205 |
| 206 void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSettings&) ov
erride {} | 206 void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSettings&) ov
erride {} |
| 207 | 207 |
| 208 void onDrawPaths(const DrawArgs&, | 208 void onDrawPaths(const DrawArgs&, |
| 209 const GrPathRange*, | 209 const GrPathRange*, |
| 210 const void* indices, | 210 const void* indices, |
| 211 GrDrawTarget::PathIndexType, | 211 GrDrawTarget::PathIndexType, |
| 212 const float transformValues[], | 212 const float transformValues[], |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 SkASSERT(fGpu); | 261 SkASSERT(fGpu); |
| 262 this->initCommon(); | 262 this->initCommon(); |
| 263 | 263 |
| 264 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 264 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 265 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 265 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 266 // resources in the buffer pools. | 266 // resources in the buffer pools. |
| 267 SkDELETE(fDrawBuffer); | 267 SkDELETE(fDrawBuffer); |
| 268 fDrawBuffer = NULL; | 268 fDrawBuffer = NULL; |
| 269 | 269 |
| 270 } | 270 } |
| OLD | NEW |