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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 bool onWritePixels(GrSurface* surface, | 250 bool onWritePixels(GrSurface* surface, |
251 int left, int top, int width, int height, | 251 int left, int top, int width, int height, |
252 GrPixelConfig config, const void* buffer, | 252 GrPixelConfig config, const void* buffer, |
253 size_t rowBytes) override { | 253 size_t rowBytes) override { |
254 return false; | 254 return false; |
255 } | 255 } |
256 | 256 |
257 void onResolveRenderTarget(GrRenderTarget* target) override { return; } | 257 void onResolveRenderTarget(GrRenderTarget* target) override { return; } |
258 | 258 |
259 bool createStencilAttachmentForRenderTarget(GrRenderTarget*, int width, int
height) override { | 259 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget*, |
260 return false; | 260 int width, |
261 } | 261 int height) over
ride { |
262 | 262 return nullptr; |
263 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment*, GrRenderTar
get*) override { | |
264 return false; | |
265 } | 263 } |
266 | 264 |
267 void clearStencil(GrRenderTarget* target) override {} | 265 void clearStencil(GrRenderTarget* target) override {} |
268 | 266 |
269 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 267 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
270 GrPixelConfig config) const
override { | 268 GrPixelConfig config) const
override { |
271 return 0; | 269 return 0; |
272 } | 270 } |
273 bool isTestingOnlyBackendTexture(GrBackendObject id) const override { return
false; } | 271 bool isTestingOnlyBackendTexture(GrBackendObject id) const override { return
false; } |
274 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override {} | 272 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override {} |
(...skipping 14 matching lines...) Expand all Loading... |
289 SkASSERT(nullptr == fGpu); | 287 SkASSERT(nullptr == fGpu); |
290 fGpu = new MockGpu(this, options); | 288 fGpu = new MockGpu(this, options); |
291 SkASSERT(fGpu); | 289 SkASSERT(fGpu); |
292 this->initCommon(); | 290 this->initCommon(); |
293 | 291 |
294 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 292 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
295 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 293 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
296 // resources in the buffer pools. | 294 // resources in the buffer pools. |
297 fDrawingMgr.abandon(); | 295 fDrawingMgr.abandon(); |
298 } | 296 } |
OLD | NEW |