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

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

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 3 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/GrOvalRenderer.cpp ('k') | src/gpu/GrPathProcessor.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 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 #include "GrPaint.h" 9 #include "GrPaint.h"
10 10
11 #include "GrProcOptInfo.h" 11 #include "GrProcOptInfo.h"
12 #include "effects/GrCoverageSetOpXP.h" 12 #include "effects/GrCoverageSetOpXP.h"
13 #include "effects/GrPorterDuffXferProcessor.h" 13 #include "effects/GrPorterDuffXferProcessor.h"
14 #include "effects/GrSimpleTextureEffect.h" 14 #include "effects/GrSimpleTextureEffect.h"
15 15
16 GrPaint::GrPaint() 16 GrPaint::GrPaint()
17 : fAntiAlias(false) 17 : fAntiAlias(false)
18 , fDither(false) 18 , fDither(false)
19 , fColor(GrColor_WHITE) 19 , fColor(GrColor_WHITE)
20 , fProcDataManager(SkNEW(GrProcessorDataManager)) { 20 , fProcDataManager(new GrProcessorDataManager) {}
21 }
22 21
23 void GrPaint::setCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCovera ge) { 22 void GrPaint::setCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCovera ge) {
24 fXPFactory.reset(GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage)) ; 23 fXPFactory.reset(GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage)) ;
25 } 24 }
26 25
27 void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matri x) { 26 void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matri x) {
28 this->addColorProcessor(GrSimpleTextureEffect::Create(fProcDataManager, text ure, 27 this->addColorProcessor(GrSimpleTextureEffect::Create(fProcDataManager, text ure,
29 matrix))->unref(); 28 matrix))->unref();
30 } 29 }
31 30
(...skipping 23 matching lines...) Expand all
55 54
56 GrXPFactory::InvariantBlendedColor blendedColor; 55 GrXPFactory::InvariantBlendedColor blendedColor;
57 fXPFactory->getInvariantBlendedColor(colorProcInfo, &blendedColor); 56 fXPFactory->getInvariantBlendedColor(colorProcInfo, &blendedColor);
58 57
59 if (kRGBA_GrColorComponentFlags == blendedColor.fKnownColorFlags) { 58 if (kRGBA_GrColorComponentFlags == blendedColor.fKnownColorFlags) {
60 *color = blendedColor.fKnownColor; 59 *color = blendedColor.fKnownColor;
61 return true; 60 return true;
62 } 61 }
63 return false; 62 return false;
64 } 63 }
OLDNEW
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/GrPathProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698