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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 bool copySurface(GrSurface* dst, | 164 bool copySurface(GrSurface* dst, |
165 GrSurface* src, | 165 GrSurface* src, |
166 const SkIRect& srcRect, | 166 const SkIRect& srcRect, |
167 const SkIPoint& dstPoint) override { return false; }; | 167 const SkIPoint& dstPoint) override { return false; }; |
168 | 168 |
169 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { | 169 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { |
170 return false; | 170 return false; |
171 } | 171 } |
172 | 172 |
| 173 void xferBarrier(GrXferBarrierType) override {} |
| 174 |
173 private: | 175 private: |
174 void onResetContext(uint32_t resetBits) override {} | 176 void onResetContext(uint32_t resetBits) override {} |
175 | 177 |
176 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 178 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
177 const void* srcData, size_t rowBytes) override { | 179 const void* srcData, size_t rowBytes) override { |
178 return NULL; | 180 return NULL; |
179 } | 181 } |
180 | 182 |
181 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 183 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
182 const void* srcData) override { | 184 const void* srcData) override { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // 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 |
265 // resources in the buffer pools. | 267 // resources in the buffer pools. |
266 SkDELETE(fDrawBuffer); | 268 SkDELETE(fDrawBuffer); |
267 SkDELETE(fDrawBufferVBAllocPool); | 269 SkDELETE(fDrawBufferVBAllocPool); |
268 SkDELETE(fDrawBufferIBAllocPool); | 270 SkDELETE(fDrawBufferIBAllocPool); |
269 | 271 |
270 fDrawBuffer = NULL; | 272 fDrawBuffer = NULL; |
271 fDrawBufferVBAllocPool = NULL; | 273 fDrawBufferVBAllocPool = NULL; |
272 fDrawBufferIBAllocPool = NULL; | 274 fDrawBufferIBAllocPool = NULL; |
273 } | 275 } |
OLD | NEW |