| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 const SkIRect& srcRect, | 168 const SkIRect& srcRect, |
| 169 const SkIPoint& dstPoint) override { return false; }; | 169 const SkIPoint& dstPoint) override { return false; }; |
| 170 | 170 |
| 171 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { | 171 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { |
| 172 return false; | 172 return false; |
| 173 } | 173 } |
| 174 | 174 |
| 175 private: | 175 private: |
| 176 void onResetContext(uint32_t resetBits) override {} | 176 void onResetContext(uint32_t resetBits) override {} |
| 177 | 177 |
| 178 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v
oid* srcData, | 178 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
| 179 size_t rowBytes) override { | 179 const void* srcData, size_t rowBytes) override { |
| 180 return NULL; | 180 return NULL; |
| 181 } | 181 } |
| 182 | 182 |
| 183 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete
d, | 183 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
| 184 const void* srcData) override { | 184 const void* srcData) override { |
| 185 return NULL; | 185 return NULL; |
| 186 } | 186 } |
| 187 | 187 |
| 188 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) override { retu
rn NULL; } | 188 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) override { retu
rn NULL; } |
| 189 | 189 |
| 190 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&)
override { | 190 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&)
override { |
| 191 return NULL; | 191 return NULL; |
| 192 } | 192 } |
| 193 | 193 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 266 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 267 // resources in the buffer pools. | 267 // resources in the buffer pools. |
| 268 SkDELETE(fDrawBuffer); | 268 SkDELETE(fDrawBuffer); |
| 269 SkDELETE(fDrawBufferVBAllocPool); | 269 SkDELETE(fDrawBufferVBAllocPool); |
| 270 SkDELETE(fDrawBufferIBAllocPool); | 270 SkDELETE(fDrawBufferIBAllocPool); |
| 271 | 271 |
| 272 fDrawBuffer = NULL; | 272 fDrawBuffer = NULL; |
| 273 fDrawBufferVBAllocPool = NULL; | 273 fDrawBufferVBAllocPool = NULL; |
| 274 fDrawBufferIBAllocPool = NULL; | 274 fDrawBufferIBAllocPool = NULL; |
| 275 } | 275 } |
| OLD | NEW |