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

Side by Side Diff: src/gpu/effects/GrDisableColorXP.h

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/effects/GrDashingEffect.cpp ('k') | src/gpu/effects/GrDisableColorXP.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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef GrDisableColorXP_DEFINED 8 #ifndef GrDisableColorXP_DEFINED
9 #define GrDisableColorXP_DEFINED 9 #define GrDisableColorXP_DEFINED
10 10
11 #include "GrTypes.h" 11 #include "GrTypes.h"
12 #include "GrXferProcessor.h" 12 #include "GrXferProcessor.h"
13 13
14 class GrProcOptInfo; 14 class GrProcOptInfo;
15 15
16 class GrDisableColorXPFactory : public GrXPFactory { 16 class GrDisableColorXPFactory : public GrXPFactory {
17 public: 17 public:
18 static GrXPFactory* Create() { 18 static GrXPFactory* Create() { return new GrDisableColorXPFactory; }
19 return SkNEW(GrDisableColorXPFactory);
20 }
21 19
22 bool supportsRGBCoverage(GrColor knownColor, uint32_t knownColorFlags) const override { 20 bool supportsRGBCoverage(GrColor knownColor, uint32_t knownColorFlags) const override {
23 return true; 21 return true;
24 } 22 }
25 23
26 void getInvariantBlendedColor(const GrProcOptInfo& colorPOI, 24 void getInvariantBlendedColor(const GrProcOptInfo& colorPOI,
27 GrXPFactory::InvariantBlendedColor* blendedCol or) const override { 25 GrXPFactory::InvariantBlendedColor* blendedCol or) const override {
28 blendedColor->fKnownColorFlags = kNone_GrColorComponentFlags; 26 blendedColor->fKnownColorFlags = kNone_GrColorComponentFlags;
29 blendedColor->fWillBlendWithDst = false; 27 blendedColor->fWillBlendWithDst = false;
30 } 28 }
(...skipping 18 matching lines...) Expand all
49 return true; 47 return true;
50 } 48 }
51 49
52 GR_DECLARE_XP_FACTORY_TEST; 50 GR_DECLARE_XP_FACTORY_TEST;
53 51
54 typedef GrXPFactory INHERITED; 52 typedef GrXPFactory INHERITED;
55 }; 53 };
56 54
57 #endif 55 #endif
58 56
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDashingEffect.cpp ('k') | src/gpu/effects/GrDisableColorXP.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698