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

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

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/GrPipelineBuilder.h ('k') | src/gpu/GrPrimitiveProcessor.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 "GrPipelineBuilder.h" 8 #include "GrPipelineBuilder.h"
9 9
10 #include "GrBlend.h" 10 #include "GrBlend.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 rt->isUnifiedMultisampled() && paint.isAntiAlias()); 46 rt->isUnifiedMultisampled() && paint.isAntiAlias());
47 this->setState(GrPipelineBuilder::kDisableOutputConversionToSRGB_Flag, 47 this->setState(GrPipelineBuilder::kDisableOutputConversionToSRGB_Flag,
48 paint.getDisableOutputConversionToSRGB()); 48 paint.getDisableOutputConversionToSRGB());
49 } 49 }
50 50
51 //////////////////////////////////////////////////////////////////////////////s 51 //////////////////////////////////////////////////////////////////////////////s
52 52
53 bool GrPipelineBuilder::willXPNeedDstTexture(const GrCaps& caps, 53 bool GrPipelineBuilder::willXPNeedDstTexture(const GrCaps& caps,
54 const GrPipelineOptimizations& opti mizations) const { 54 const GrPipelineOptimizations& opti mizations) const {
55 if (this->getXPFactory()) { 55 if (this->getXPFactory()) {
56 return this->getXPFactory()->willNeedDstTexture(caps, optimizations, 56 return this->getXPFactory()->willNeedDstTexture(caps, optimizations,
57 this->hasMixedSamples()) ; 57 this->hasMixedSamples()) ;
58 } 58 }
59 return GrPorterDuffXPFactory::SrcOverWillNeedDstTexture(caps, optimizations, 59 return GrPorterDuffXPFactory::SrcOverWillNeedDstTexture(caps, optimizations,
60 this->hasMixedSample s()); 60 this->hasMixedSample s());
61 } 61 }
62 62
63 void GrPipelineBuilder::AutoRestoreFragmentProcessorState::set( 63 void GrPipelineBuilder::AutoRestoreFragmentProcessorState::set(
64 const GrPipelineBuilder * pipelineBuilder) { 64 const GrPipelineBuilder * pipelineBuilder) {
65 if (fPipelineBuilder) { 65 if (fPipelineBuilder) {
66 int m = fPipelineBuilder->numColorFragmentProcessors() - fColorEffectCnt ; 66 int m = fPipelineBuilder->numColorFragmentProcessors() - fColorEffectCnt ;
(...skipping 23 matching lines...) Expand all
90 90
91 GrPipelineBuilder::~GrPipelineBuilder() { 91 GrPipelineBuilder::~GrPipelineBuilder() {
92 SkASSERT(0 == fBlockEffectRemovalCnt); 92 SkASSERT(0 == fBlockEffectRemovalCnt);
93 for (int i = 0; i < fColorFragmentProcessors.count(); ++i) { 93 for (int i = 0; i < fColorFragmentProcessors.count(); ++i) {
94 fColorFragmentProcessors[i]->unref(); 94 fColorFragmentProcessors[i]->unref();
95 } 95 }
96 for (int i = 0; i < fCoverageFragmentProcessors.count(); ++i) { 96 for (int i = 0; i < fCoverageFragmentProcessors.count(); ++i) {
97 fCoverageFragmentProcessors[i]->unref(); 97 fCoverageFragmentProcessors[i]->unref();
98 } 98 }
99 } 99 }
OLDNEW
« no previous file with comments | « src/gpu/GrPipelineBuilder.h ('k') | src/gpu/GrPrimitiveProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698