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

Side by Side Diff: cc/output/shader.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « cc/output/renderer_pixeltest.cc ('k') | cc/output/shader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_SHADER_H_ 5 #ifndef CC_OUTPUT_SHADER_H_
6 #define CC_OUTPUT_SHADER_H_ 6 #define CC_OUTPUT_SHADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 21 matching lines...) Expand all
32 32
33 enum SamplerType { 33 enum SamplerType {
34 SamplerTypeNA = 0, 34 SamplerTypeNA = 0,
35 SamplerType2D = 1, 35 SamplerType2D = 1,
36 SamplerType2DRect = 2, 36 SamplerType2DRect = 2,
37 SamplerTypeExternalOES = 3, 37 SamplerTypeExternalOES = 3,
38 NumSamplerTypes = 4 38 NumSamplerTypes = 4
39 }; 39 };
40 40
41 enum BlendMode { 41 enum BlendMode {
42 BlendModeNone,
42 BlendModeNormal, 43 BlendModeNormal,
44 BlendModeScreen,
43 BlendModeOverlay, 45 BlendModeOverlay,
44 BlendModeDarken, 46 BlendModeDarken,
45 BlendModeLighten, 47 BlendModeLighten,
46 BlendModeColorDodge, 48 BlendModeColorDodge,
47 BlendModeColorBurn, 49 BlendModeColorBurn,
48 BlendModeHardLight, 50 BlendModeHardLight,
49 BlendModeSoftLight, 51 BlendModeSoftLight,
50 BlendModeDifference, 52 BlendModeDifference,
51 BlendModeExclusion, 53 BlendModeExclusion,
52 BlendModeMultiply, 54 BlendModeMultiply,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 DISALLOW_COPY_AND_ASSIGN(VertexShaderVideoTransform); 300 DISALLOW_COPY_AND_ASSIGN(VertexShaderVideoTransform);
299 }; 301 };
300 302
301 class FragmentTexBlendMode { 303 class FragmentTexBlendMode {
302 public: 304 public:
303 int backdrop_location() const { return backdrop_location_; } 305 int backdrop_location() const { return backdrop_location_; }
304 int backdrop_rect_location() const { return backdrop_rect_location_; } 306 int backdrop_rect_location() const { return backdrop_rect_location_; }
305 307
306 BlendMode blend_mode() const { return blend_mode_; } 308 BlendMode blend_mode() const { return blend_mode_; }
307 void set_blend_mode(BlendMode blend_mode) { blend_mode_ = blend_mode; } 309 void set_blend_mode(BlendMode blend_mode) { blend_mode_ = blend_mode; }
308 bool is_default_blend_mode() const { return blend_mode_ == BlendModeNormal; } 310 bool has_blend_mode() const { return blend_mode_ != BlendModeNone; }
309 311
310 protected: 312 protected:
311 FragmentTexBlendMode(); 313 FragmentTexBlendMode();
312 314
313 std::string SetBlendModeFunctions(std::string shader_string) const; 315 std::string SetBlendModeFunctions(std::string shader_string) const;
314 316
315 int backdrop_location_; 317 int backdrop_location_;
316 int backdrop_rect_location_; 318 int backdrop_rect_location_;
317 319
318 private: 320 private:
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 int tex_transform_location_; 771 int tex_transform_location_;
770 int frequency_location_; 772 int frequency_location_;
771 int color_location_; 773 int color_location_;
772 774
773 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); 775 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard);
774 }; 776 };
775 777
776 } // namespace cc 778 } // namespace cc
777 779
778 #endif // CC_OUTPUT_SHADER_H_ 780 #endif // CC_OUTPUT_SHADER_H_
OLDNEW
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/output/shader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698