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

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

Issue 1705133002: Add GrGpu support for Vulkan command buffer flush (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Merge postFlush and performFlushWorkaround Created 4 years, 10 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/GrGpu.h ('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 2010 Google Inc. 2 * Copyright 2010 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 8
9 #include "GrGpu.h" 9 #include "GrGpu.h"
10 10
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 } 359 }
360 return false; 360 return false;
361 } 361 }
362 362
363 void GrGpu::resolveRenderTarget(GrRenderTarget* target) { 363 void GrGpu::resolveRenderTarget(GrRenderTarget* target) {
364 SkASSERT(target); 364 SkASSERT(target);
365 this->handleDirtyContext(); 365 this->handleDirtyContext();
366 this->onResolveRenderTarget(target); 366 this->onResolveRenderTarget(target);
367 } 367 }
368 368
369 void GrGpu::performFlushWorkaround() {
370 }
371
372 //////////////////////////////////////////////////////////////////////////////// 369 ////////////////////////////////////////////////////////////////////////////////
373 370
374 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { 371 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) {
375 this->handleDirtyContext(); 372 this->handleDirtyContext();
376 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c aps())) { 373 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c aps())) {
377 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); 374 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType);
378 } 375 }
379 376
380 GrVertices::Iterator iter; 377 GrVertices::Iterator iter;
381 const GrNonInstancedVertices* verts = iter.init(vertices); 378 const GrNonInstancedVertices* verts = iter.init(vertices);
382 do { 379 do {
383 this->onDraw(args, *verts); 380 this->onDraw(args, *verts);
384 fStats.incNumDraws(); 381 fStats.incNumDraws();
385 } while ((verts = iter.next())); 382 } while ((verts = iter.next()));
386 } 383 }
387 384
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698