| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 bool copySurface(GrSurface* dst, | 163 bool copySurface(GrSurface* dst, |
| 164 GrSurface* src, | 164 GrSurface* src, |
| 165 const SkIRect& srcRect, | 165 const SkIRect& srcRect, |
| 166 const SkIPoint& dstPoint) override { return false; }; | 166 const SkIPoint& dstPoint) override { return false; }; |
| 167 | 167 |
| 168 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { | 168 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { |
| 169 return false; | 169 return false; |
| 170 } | 170 } |
| 171 | 171 |
| 172 void xferBarrier(GrXferBarrierType) override {} | 172 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
| 173 | 173 |
| 174 private: | 174 private: |
| 175 void onResetContext(uint32_t resetBits) override {} | 175 void onResetContext(uint32_t resetBits) override {} |
| 176 | 176 |
| 177 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 177 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
| 178 const void* srcData, size_t rowBytes) override { | 178 const void* srcData, size_t rowBytes) override { |
| 179 return NULL; | 179 return NULL; |
| 180 } | 180 } |
| 181 | 181 |
| 182 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 182 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
| (...skipping 78 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 |