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

Side by Side Diff: src/core/SkColorShader.h

Issue 1316513002: Change SkShader;asFragmentProcessor signature to no longer take skpaint\grcolor* (Closed) Base URL: https://skia.googlesource.com/skia.git@things
Patch Set: Address comments, fix roll(?) 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/core/SkBitmapProcShader.cpp ('k') | src/core/SkLightingShader.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 2007 The Android Open Source Project 2 * Copyright 2007 The Android Open Source Project
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 SkColorShader_DEFINED 8 #ifndef SkColorShader_DEFINED
9 #define SkColorShader_DEFINED 9 #define SkColorShader_DEFINED
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 private: 42 private:
43 SkPMColor fPMColor; 43 SkPMColor fPMColor;
44 uint32_t fFlags; 44 uint32_t fFlags;
45 uint16_t fColor16; 45 uint16_t fColor16;
46 46
47 typedef SkShader::Context INHERITED; 47 typedef SkShader::Context INHERITED;
48 }; 48 };
49 49
50 GradientType asAGradient(GradientInfo* info) const override; 50 GradientType asAGradient(GradientInfo* info) const override;
51 51
52 bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix& viewM, 52 #if SK_SUPPORT_GPU
53 const SkMatrix*, GrColor*, GrProcessorDataManager*, 53 const GrFragmentProcessor* asFragmentProcessor(GrContext*, const SkMatrix& v iewM,
54 GrFragmentProcessor**) const override; 54 const SkMatrix*, SkFilterQual ity,
55 GrProcessorDataManager*) cons t override;
56 #endif
55 57
56 SK_TO_STRING_OVERRIDE() 58 SK_TO_STRING_OVERRIDE()
57 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader) 59 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader)
58 60
59 protected: 61 protected:
60 SkColorShader(SkReadBuffer&); 62 SkColorShader(SkReadBuffer&);
61 void flatten(SkWriteBuffer&) const override; 63 void flatten(SkWriteBuffer&) const override;
62 Context* onCreateContext(const ContextRec&, void* storage) const override; 64 Context* onCreateContext(const ContextRec&, void* storage) const override;
63 bool onAsLuminanceColor(SkColor* lum) const override { 65 bool onAsLuminanceColor(SkColor* lum) const override {
64 *lum = fColor; 66 *lum = fColor;
65 return true; 67 return true;
66 } 68 }
67 69
68 private: 70 private:
69 SkColor fColor; 71 SkColor fColor;
70 72
71 typedef SkShader INHERITED; 73 typedef SkShader INHERITED;
72 }; 74 };
73 75
74 #endif 76 #endif
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkLightingShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698