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

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

Issue 1553103003: remove 565 effects shaders (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove more hasspan16 checks 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/effects.gypi ('k') | src/core/SkPictureShader.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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 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 #ifndef SkPictureShader_DEFINED 9 #ifndef SkPictureShader_DEFINED
10 #define SkPictureShader_DEFINED 10 #define SkPictureShader_DEFINED
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 public: 55 public:
56 static Context* Create(void* storage, const SkPictureShader&, const Cont extRec&, 56 static Context* Create(void* storage, const SkPictureShader&, const Cont extRec&,
57 SkShader* bitmapShader); 57 SkShader* bitmapShader);
58 58
59 virtual ~PictureShaderContext(); 59 virtual ~PictureShaderContext();
60 60
61 uint32_t getFlags() const override; 61 uint32_t getFlags() const override;
62 62
63 ShadeProc asAShadeProc(void** ctx) override; 63 ShadeProc asAShadeProc(void** ctx) override;
64 void shadeSpan(int x, int y, SkPMColor dstC[], int count) override; 64 void shadeSpan(int x, int y, SkPMColor dstC[], int count) override;
65 void shadeSpan16(int x, int y, uint16_t dstC[], int count) override;
66 65
67 private: 66 private:
68 PictureShaderContext(const SkPictureShader&, const ContextRec&, SkShader * bitmapShader); 67 PictureShaderContext(const SkPictureShader&, const ContextRec&, SkShader * bitmapShader);
69 68
70 SkAutoTUnref<SkShader> fBitmapShader; 69 SkAutoTUnref<SkShader> fBitmapShader;
71 SkShader::Context* fBitmapShaderContext; 70 SkShader::Context* fBitmapShaderContext;
72 void* fBitmapShaderContextStorage; 71 void* fBitmapShaderContextStorage;
73 72
74 typedef SkShader::Context INHERITED; 73 typedef SkShader::Context INHERITED;
75 }; 74 };
76 75
77 typedef SkShader INHERITED; 76 typedef SkShader INHERITED;
78 }; 77 };
79 78
80 #endif // SkPictureShader_DEFINED 79 #endif // SkPictureShader_DEFINED
OLDNEW
« no previous file with comments | « gyp/effects.gypi ('k') | src/core/SkPictureShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698