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

Side by Side Diff: src/gpu/batches/GrDrawBatch.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/batches/GrDrawAtlasBatch.h ('k') | src/gpu/batches/GrDrawPathBatch.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 2015 Google Inc. 2 * Copyright 2015 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 "GrDrawBatch.h" 8 #include "GrDrawBatch.h"
9 9
10 GrDrawBatch::GrDrawBatch(uint32_t classID) : INHERITED(classID), fPipelineInstal led(false) { } 10 GrDrawBatch::GrDrawBatch(uint32_t classID) : INHERITED(classID), fPipelineInstal led(false) { }
11 11
12 GrDrawBatch::~GrDrawBatch() { 12 GrDrawBatch::~GrDrawBatch() {
13 if (fPipelineInstalled) { 13 if (fPipelineInstalled) {
14 this->pipeline()->~GrPipeline(); 14 this->pipeline()->~GrPipeline();
15 } 15 }
16 } 16 }
17 17
18 void GrDrawBatch::getPipelineOptimizations(GrPipelineOptimizations* opt) const { 18 void GrDrawBatch::getPipelineOptimizations(GrPipelineOptimizations* opt) const {
19 GrInitInvariantOutput color; 19 GrInitInvariantOutput color;
20 GrInitInvariantOutput coverage; 20 GrInitInvariantOutput coverage;
21 opt->fOverrides.fUsePLSDstRead = false;
21 this->computePipelineOptimizations(&color, &coverage, &opt->fOverrides); 22 this->computePipelineOptimizations(&color, &coverage, &opt->fOverrides);
22 opt->fColorPOI.initUsingInvariantOutput(color); 23 opt->fColorPOI.initUsingInvariantOutput(color);
23 opt->fCoveragePOI.initUsingInvariantOutput(coverage); 24 opt->fCoveragePOI.initUsingInvariantOutput(coverage);
24 } 25 }
25 26
26 bool GrDrawBatch::installPipeline(const GrPipeline::CreateArgs& args) { 27 bool GrDrawBatch::installPipeline(const GrPipeline::CreateArgs& args) {
27 GrXPOverridesForBatch overrides; 28 GrXPOverridesForBatch overrides;
28 void* location = fPipelineStorage.get(); 29 void* location = fPipelineStorage.get();
29 if (!GrPipeline::CreateAt(location, args, &overrides)) { 30 if (!GrPipeline::CreateAt(location, args, &overrides)) {
30 return false; 31 return false;
31 } 32 }
32 this->initBatchTracker(overrides); 33 this->initBatchTracker(overrides);
33 fPipelineInstalled = true; 34 fPipelineInstalled = true;
34 return true; 35 return true;
35 } 36 }
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDrawAtlasBatch.h ('k') | src/gpu/batches/GrDrawPathBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698