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

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: Created 4 years, 11 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "GrGpu.h" 10 #include "GrGpu.h"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 360 }
361 return false; 361 return false;
362 } 362 }
363 363
364 void GrGpu::resolveRenderTarget(GrRenderTarget* target) { 364 void GrGpu::resolveRenderTarget(GrRenderTarget* target) {
365 SkASSERT(target); 365 SkASSERT(target);
366 this->handleDirtyContext(); 366 this->handleDirtyContext();
367 this->onResolveRenderTarget(target); 367 this->onResolveRenderTarget(target);
368 } 368 }
369 369
370 void GrGpu::performFlushWorkaround() {
371 }
372
370 //////////////////////////////////////////////////////////////////////////////// 373 ////////////////////////////////////////////////////////////////////////////////
371 374
372 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { 375 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) {
373 this->handleDirtyContext(); 376 this->handleDirtyContext();
374 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c aps())) { 377 if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*this->c aps())) {
375 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); 378 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType);
376 } 379 }
377 380
378 GrVertices::Iterator iter; 381 GrVertices::Iterator iter;
379 const GrNonInstancedVertices* verts = iter.init(vertices); 382 const GrNonInstancedVertices* verts = iter.init(vertices);
380 do { 383 do {
381 this->onDraw(args, *verts); 384 this->onDraw(args, *verts);
382 fStats.incNumDraws(); 385 fStats.incNumDraws();
383 } while ((verts = iter.next())); 386 } while ((verts = iter.next()));
384 } 387 }
388
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698