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

Side by Side Diff: src/effects/SkArithmeticMode.cpp

Issue 1626443002: Revert of Add gpu implementation of OverdrawXfermode (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
« no previous file with comments | « gyp/tests.gypi ('k') | src/effects/SkArithmeticMode_gpu.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 2013 Google Inc. 2 * Copyright 2013 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 "SkArithmeticMode.h" 8 #include "SkArithmeticMode.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkReadBuffer.h" 10 #include "SkReadBuffer.h"
11 #include "SkWriteBuffer.h" 11 #include "SkWriteBuffer.h"
12 #include "SkString.h" 12 #include "SkString.h"
13 #include "SkUnPreMultiply.h" 13 #include "SkUnPreMultiply.h"
14 #if SK_SUPPORT_GPU 14 #if SK_SUPPORT_GPU
15 #include "SkArithmeticMode_gpu.h" 15 #include "SkArithmeticMode_gpu.h"
16 #endif 16 #endif
17 17
18 static const bool gUseUnpremul = false; 18 static const bool gUseUnpremul = false;
19 19
20 class SkArithmeticMode_scalar : public SkXfermode { 20 class SkArithmeticMode_scalar : public SkXfermode {
21 public: 21 public:
22 static SkXfermode* Create(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4 , 22 static SkArithmeticMode_scalar* Create(SkScalar k1, SkScalar k2, SkScalar k3 , SkScalar k4,
23 bool enforcePMColor) { 23 bool enforcePMColor) {
24 return new SkArithmeticMode_scalar(k1, k2, k3, k4, enforcePMColor); 24 return new SkArithmeticMode_scalar(k1, k2, k3, k4, enforcePMColor);
25 } 25 }
26 26
27 void xfer32(SkPMColor dst[], const SkPMColor src[], int count, 27 virtual void xfer32(SkPMColor dst[], const SkPMColor src[], int count,
28 const SkAlpha aa[]) const override; 28 const SkAlpha aa[]) const override;
29 29
30 SK_TO_STRING_OVERRIDE() 30 SK_TO_STRING_OVERRIDE()
31 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkArithmeticMode_scalar) 31 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkArithmeticMode_scalar)
32 32
33 #if SK_SUPPORT_GPU 33 #if SK_SUPPORT_GPU
34 bool asFragmentProcessor(const GrFragmentProcessor**, 34 bool asFragmentProcessor(const GrFragmentProcessor**,
35 const GrFragmentProcessor* dst) const override; 35 const GrFragmentProcessor* dst) const override;
36 36
37 bool asXPFactory(GrXPFactory**) const override; 37 bool asXPFactory(GrXPFactory**) const override;
38 #endif 38 #endif
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 fEnforcePMColor); 257 fEnforcePMColor);
258 } 258 }
259 return true; 259 return true;
260 } 260 }
261 261
262 #endif 262 #endif
263 263
264 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkArithmeticMode) 264 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkArithmeticMode)
265 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArithmeticMode_scalar) 265 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArithmeticMode_scalar)
266 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 266 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « gyp/tests.gypi ('k') | src/effects/SkArithmeticMode_gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698