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 | 168 |
169 bool copySurface(GrSurface* dst, | 169 bool copySurface(GrSurface* dst, |
170 GrSurface* src, | 170 GrSurface* src, |
171 const SkIRect& srcRect, | 171 const SkIRect& srcRect, |
172 const SkIPoint& dstPoint) override { return false; }; | 172 const SkIPoint& dstPoint) override { return false; }; |
173 | 173 |
174 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 174 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { |
175 return false; | 175 return false; |
176 } | 176 } |
177 | 177 |
178 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | |
179 | |
180 private: | 178 private: |
181 void onResetContext(uint32_t resetBits) override {} | 179 void onResetContext(uint32_t resetBits) override {} |
182 | 180 |
| 181 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
| 182 |
183 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 183 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
184 const void* srcData, size_t rowBytes) override { | 184 const void* srcData, size_t rowBytes) override { |
185 return NULL; | 185 return NULL; |
186 } | 186 } |
187 | 187 |
188 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 188 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
189 const void* srcData) override { | 189 const void* srcData) override { |
190 return NULL; | 190 return NULL; |
191 } | 191 } |
192 | 192 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 SkASSERT(NULL == fGpu); | 262 SkASSERT(NULL == fGpu); |
263 fGpu = SkNEW_ARGS(MockGpu, (this, options)); | 263 fGpu = SkNEW_ARGS(MockGpu, (this, options)); |
264 SkASSERT(fGpu); | 264 SkASSERT(fGpu); |
265 this->initCommon(); | 265 this->initCommon(); |
266 | 266 |
267 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 267 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
268 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 268 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
269 // resources in the buffer pools. | 269 // resources in the buffer pools. |
270 fDrawingMgr.abandon(); | 270 fDrawingMgr.abandon(); |
271 } | 271 } |
OLD | NEW |