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

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

Issue 1541903002: added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix for ASAN failure 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/GrOvalRenderer.cpp » ('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
369 //////////////////////////////////////////////////////////////////////////////// 372 ////////////////////////////////////////////////////////////////////////////////
370 373
371 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { 374 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) {
372 this->handleDirtyContext(); 375 this->handleDirtyContext();
373 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c aps())) { 376 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c aps())) {
374 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); 377 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType);
375 } 378 }
376 379
377 GrVertices::Iterator iter; 380 GrVertices::Iterator iter;
378 const GrNonInstancedVertices* verts = iter.init(vertices); 381 const GrNonInstancedVertices* verts = iter.init(vertices);
379 do { 382 do {
380 this->onDraw(args, *verts); 383 this->onDraw(args, *verts);
381 fStats.incNumDraws(); 384 fStats.incNumDraws();
382 } while ((verts = iter.next())); 385 } while ((verts = iter.next()));
383 } 386 }
387
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698