Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: tools/gpu/GrTest.cpp

Issue 2448593002: Remove SkAutoTUnref and SkAutoTDelete from public includes. (Closed)
Patch Set: And Vulcan. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/VkWrapTests.cpp ('k') | tools/gpu/vk/VkTestContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrTest.h" 8 #include "GrTest.h"
9 9
10 #include "GrBatchAtlas.h" 10 #include "GrBatchAtlas.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, 330 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
331 const SkTArray<GrMipLevel>& texels) override { 331 const SkTArray<GrMipLevel>& texels) override {
332 return nullptr; 332 return nullptr;
333 } 333 }
334 334
335 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, SkBudgeted b udgeted, 335 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, SkBudgeted b udgeted,
336 const SkTArray<GrMipLevel>& texels) ove rride { 336 const SkTArray<GrMipLevel>& texels) ove rride {
337 return nullptr; 337 return nullptr;
338 } 338 }
339 339
340 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, 340 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwn ership) override {
341 GrWrapOwnership) override { return nullptr; }
342
343 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
344 GrWrapOwnership) override {
345 return nullptr; 341 return nullptr;
346 } 342 }
347 343
348 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { 344 sk_sp<GrRenderTarget> onWrapBackendRenderTarget(const GrBackendRenderTargetD esc&,
345 GrWrapOwnership) override {
349 return nullptr; 346 return nullptr;
350 } 347 }
351 348
349 sk_sp<GrRenderTarget> onWrapBackendTextureAsRenderTarget(const GrBackendText ureDesc&) override {
350 return nullptr;
351 }
352
352 GrBuffer* onCreateBuffer(size_t, GrBufferType, GrAccessPattern, const void*) override { 353 GrBuffer* onCreateBuffer(size_t, GrBufferType, GrAccessPattern, const void*) override {
353 return nullptr; 354 return nullptr;
354 } 355 }
355 356
356 gr_instanced::InstancedRendering* onCreateInstancedRendering() override { re turn nullptr; } 357 gr_instanced::InstancedRendering* onCreateInstancedRendering() override { re turn nullptr; }
357 358
358 bool onReadPixels(GrSurface* surface, 359 bool onReadPixels(GrSurface* surface,
359 int left, int top, int width, int height, 360 int left, int top, int width, int height,
360 GrPixelConfig, 361 GrPixelConfig,
361 void* buffer, 362 void* buffer,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 SkASSERT(nullptr == fGpu); 410 SkASSERT(nullptr == fGpu);
410 fGpu = new MockGpu(this, options); 411 fGpu = new MockGpu(this, options);
411 SkASSERT(fGpu); 412 SkASSERT(fGpu);
412 this->initCommon(options); 413 this->initCommon(options);
413 414
414 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 415 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
415 // these objects are required for any of tests that use this context. TODO: make stop allocating 416 // these objects are required for any of tests that use this context. TODO: make stop allocating
416 // resources in the buffer pools. 417 // resources in the buffer pools.
417 fDrawingManager->abandon(); 418 fDrawingManager->abandon();
418 } 419 }
OLDNEW
« no previous file with comments | « tests/VkWrapTests.cpp ('k') | tools/gpu/vk/VkTestContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698