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

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

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: moved the refactoring to another patch 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/gl/GrGLGpu.cpp ('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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 332 }
333 333
334 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, 334 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&,
335 GrWrapOwnership) override { return nullptr; } 335 GrWrapOwnership) override { return nullptr; }
336 336
337 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 337 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
338 GrWrapOwnership) override { 338 GrWrapOwnership) override {
339 return nullptr; 339 return nullptr;
340 } 340 }
341 341
342 void onComputeBackendTextureKeyForWrapAsRenderTarget(const GrBackendTextureD esc&,
343 GrUniqueKey*) override {
344 }
345 bool onRewrapRenderTargetWithBackendTexture(const GrBackendTextureDesc&,
346 GrRenderTarget*) override {
347 return nullptr;
348 }
349
342 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { 350 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override {
343 return nullptr; 351 return nullptr;
344 } 352 }
345 353
346 GrBuffer* onCreateBuffer(GrBufferType, size_t, GrAccessPattern) override { r eturn nullptr; } 354 GrBuffer* onCreateBuffer(GrBufferType, size_t, GrAccessPattern) override { r eturn nullptr; }
347 355
348 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { } 356 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { }
349 357
350 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {} 358 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {}
351 359
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 SkASSERT(nullptr == fGpu); 416 SkASSERT(nullptr == fGpu);
409 fGpu = new MockGpu(this, options); 417 fGpu = new MockGpu(this, options);
410 SkASSERT(fGpu); 418 SkASSERT(fGpu);
411 this->initCommon(options); 419 this->initCommon(options);
412 420
413 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 421 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
414 // these objects are required for any of tests that use this context. TODO: make stop allocating 422 // these objects are required for any of tests that use this context. TODO: make stop allocating
415 // resources in the buffer pools. 423 // resources in the buffer pools.
416 fDrawingManager->abandon(); 424 fDrawingManager->abandon();
417 } 425 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698