| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE {
return NULL; } | 109 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE {
return NULL; } |
| 110 | 110 |
| 111 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 111 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, |
| 112 bool canIgnoreRect) SK_OVERRIDE {} | 112 bool canIgnoreRect) SK_OVERRIDE {} |
| 113 | 113 |
| 114 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) SK_OVERRIDE {} | 114 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) SK_OVERRIDE {} |
| 115 | 115 |
| 116 void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) SK_OVERRID
E {} | 116 void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) SK_OVERRID
E {} |
| 117 | 117 |
| 118 void onStencilPath(const GrOptDrawState&, const GrPath*, const GrStencilSett
ings&) SK_OVERRIDE { | 118 void onStencilPath(const GrPath* path, const StencilPathState& state) SK_OVE
RRIDE {} |
| 119 } | |
| 120 | 119 |
| 121 void onDrawPath(const GrOptDrawState&, const GrPath*, const GrStencilSetting
s&) SK_OVERRIDE {} | 120 void onDrawPath(const GrOptDrawState&, const GrPath*, const GrStencilSetting
s&) SK_OVERRIDE {} |
| 122 | 121 |
| 123 void onDrawPaths(const GrOptDrawState&, | 122 void onDrawPaths(const GrOptDrawState&, |
| 124 const GrPathRange*, | 123 const GrPathRange*, |
| 125 const void* indices, | 124 const void* indices, |
| 126 GrDrawTarget::PathIndexType, | 125 GrDrawTarget::PathIndexType, |
| 127 const float transformValues[], | 126 const float transformValues[], |
| 128 GrDrawTarget::PathTransformType, | 127 GrDrawTarget::PathTransformType, |
| 129 int count, | 128 int count, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // 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 |
| 181 // resources in the buffer pools. | 180 // resources in the buffer pools. |
| 182 SkDELETE(fDrawBuffer); | 181 SkDELETE(fDrawBuffer); |
| 183 SkDELETE(fDrawBufferVBAllocPool); | 182 SkDELETE(fDrawBufferVBAllocPool); |
| 184 SkDELETE(fDrawBufferIBAllocPool); | 183 SkDELETE(fDrawBufferIBAllocPool); |
| 185 | 184 |
| 186 fDrawBuffer = NULL; | 185 fDrawBuffer = NULL; |
| 187 fDrawBufferVBAllocPool = NULL; | 186 fDrawBufferVBAllocPool = NULL; |
| 188 fDrawBufferIBAllocPool = NULL; | 187 fDrawBufferIBAllocPool = NULL; |
| 189 } | 188 } |
| OLD | NEW |