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

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

Issue 1842313003: Remove ownership parameter from GrResourceProvider::wrapBackendTextureAsRenderTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: whitespace Created 4 years, 8 months 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 | « src/gpu/vk/GrVkGpu.h ('k') | no next file » | 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 } 333 }
334 334
335 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, 335 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&,
336 GrWrapOwnership) override { return nullptr; } 336 GrWrapOwnership) override { return nullptr; }
337 337
338 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 338 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
339 GrWrapOwnership) override { 339 GrWrapOwnership) override {
340 return nullptr; 340 return nullptr;
341 } 341 }
342 342
343 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&, 343 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override {
344 GrWrapOwnership) override {
345 return nullptr; 344 return nullptr;
346 } 345 }
347 346
348 GrBuffer* onCreateBuffer(GrBufferType, size_t, GrAccessPattern) override { r eturn nullptr; } 347 GrBuffer* onCreateBuffer(GrBufferType, size_t, GrAccessPattern) override { r eturn nullptr; }
349 348
350 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { } 349 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { }
351 350
352 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {} 351 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {}
353 352
354 void onDraw(const GrPipeline&, 353 void onDraw(const GrPipeline&,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 SkASSERT(nullptr == fGpu); 409 SkASSERT(nullptr == fGpu);
411 fGpu = new MockGpu(this, options); 410 fGpu = new MockGpu(this, options);
412 SkASSERT(fGpu); 411 SkASSERT(fGpu);
413 this->initCommon(options); 412 this->initCommon(options);
414 413
415 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 414 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
416 // these objects are required for any of tests that use this context. TODO: make stop allocating 415 // these objects are required for any of tests that use this context. TODO: make stop allocating
417 // resources in the buffer pools. 416 // resources in the buffer pools.
418 fDrawingManager->abandon(); 417 fDrawingManager->abandon();
419 } 418 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698