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

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

Issue 1854283004: Track GL buffer state based on unique resource ID (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix for GR_GL_USE_BUFFER_DATA_NULL_HINT=0 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/GrVkVertexBuffer.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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
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&) override { 343 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override {
344 return nullptr; 344 return nullptr;
345 } 345 }
346 346
347 GrBuffer* onCreateBuffer(GrBufferType, size_t, GrAccessPattern) override { r eturn nullptr; } 347 GrBuffer* onCreateBuffer(size_t, GrBufferType, GrAccessPattern) override { r eturn nullptr; }
348 348
349 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { } 349 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { }
350 350
351 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {} 351 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {}
352 352
353 void onDraw(const GrPipeline&, 353 void onDraw(const GrPipeline&,
354 const GrPrimitiveProcessor&, 354 const GrPrimitiveProcessor&,
355 const GrMesh*, 355 const GrMesh*,
356 int meshCount) override {} 356 int meshCount) override {}
357 357
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 SkASSERT(nullptr == fGpu); 409 SkASSERT(nullptr == fGpu);
410 fGpu = new MockGpu(this, options); 410 fGpu = new MockGpu(this, options);
411 SkASSERT(fGpu); 411 SkASSERT(fGpu);
412 this->initCommon(options); 412 this->initCommon(options);
413 413
414 // 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
415 // 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
416 // resources in the buffer pools. 416 // resources in the buffer pools.
417 fDrawingManager->abandon(); 417 fDrawingManager->abandon();
418 } 418 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkVertexBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698