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

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

Issue 1709163003: Add wrapBackendTextureAsRenderTarget API (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: fix test Created 4 years, 9 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/GrResourceProvider.cpp ('k') | src/gpu/gl/GrGLGpu.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 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 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&,
343 GrWrapOwnership) override {
344 return nullptr;
345 }
346
342 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r eturn nullptr; } 347 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r eturn nullptr; }
343 348
344 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret urn nullptr; } 349 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret urn nullptr; }
345 350
346 GrTransferBuffer* onCreateTransferBuffer(size_t, TransferType) override { re turn nullptr; } 351 GrTransferBuffer* onCreateTransferBuffer(size_t, TransferType) override { re turn nullptr; }
347 352
348 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { } 353 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { }
349 354
350 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {} 355 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {}
351 356
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 SkASSERT(nullptr == fGpu); 411 SkASSERT(nullptr == fGpu);
407 fGpu = new MockGpu(this, options); 412 fGpu = new MockGpu(this, options);
408 SkASSERT(fGpu); 413 SkASSERT(fGpu);
409 this->initCommon(options); 414 this->initCommon(options);
410 415
411 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 416 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
412 // these objects are required for any of tests that use this context. TODO: make stop allocating 417 // these objects are required for any of tests that use this context. TODO: make stop allocating
413 // resources in the buffer pools. 418 // resources in the buffer pools.
414 fDrawingManager->abandon(); 419 fDrawingManager->abandon();
415 } 420 }
OLDNEW
« no previous file with comments | « src/gpu/GrResourceProvider.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698