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

Side by Side Diff: include/effects/SkModeColorFilter.h

Issue 1213613016: More threading of GrShaderDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@GrShaderDataManager
Patch Set: build issue Created 5 years, 5 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 | « include/effects/SkLumaColorFilter.h ('k') | src/core/SkColorFilter.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 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 #ifndef SkModeColorFilter_DEFINED 8 #ifndef SkModeColorFilter_DEFINED
9 #define SkModeColorFilter_DEFINED 9 #define SkModeColorFilter_DEFINED
10 10
(...skipping 21 matching lines...) Expand all
32 #ifndef SK_IGNORE_TO_STRING 32 #ifndef SK_IGNORE_TO_STRING
33 void toString(SkString* str) const override { 33 void toString(SkString* str) const override {
34 str->append("SkModeColorFilter: color: 0x"); 34 str->append("SkModeColorFilter: color: 0x");
35 str->appendHex(fColor); 35 str->appendHex(fColor);
36 str->append(" mode: "); 36 str->append(" mode: ");
37 str->append(SkXfermode::ModeName(fMode)); 37 str->append(SkXfermode::ModeName(fMode));
38 } 38 }
39 #endif 39 #endif
40 40
41 #if SK_SUPPORT_GPU 41 #if SK_SUPPORT_GPU
42 bool asFragmentProcessors(GrContext*, SkTDArray<GrFragmentProcessor*>*) cons t override; 42 bool asFragmentProcessors(GrContext*, GrShaderDataManager*,
43 SkTDArray<GrFragmentProcessor*>*) const override;
43 #endif 44 #endif
44 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkModeColorFilter) 45 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkModeColorFilter)
45 46
46 protected: 47 protected:
47 void flatten(SkWriteBuffer&) const override; 48 void flatten(SkWriteBuffer&) const override;
48 49
49 private: 50 private:
50 SkColor fColor; 51 SkColor fColor;
51 SkXfermode::Mode fMode; 52 SkXfermode::Mode fMode;
52 // cache 53 // cache
53 SkPMColor fPMColor; 54 SkPMColor fPMColor;
54 SkXfermodeProc fProc; 55 SkXfermodeProc fProc;
55 56
56 void updateCache(); 57 void updateCache();
57 58
58 typedef SkColorFilter INHERITED; 59 typedef SkColorFilter INHERITED;
59 }; 60 };
60 61
61 #endif 62 #endif
OLDNEW
« no previous file with comments | « include/effects/SkLumaColorFilter.h ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698