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

Side by Side Diff: cc/output/program_binding.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/output_surface_unittest.cc ('k') | cc/output/renderer_pixeltest.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_PROGRAM_BINDING_H_ 5 #ifndef CC_OUTPUT_PROGRAM_BINDING_H_
6 #define CC_OUTPUT_PROGRAM_BINDING_H_ 6 #define CC_OUTPUT_PROGRAM_BINDING_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }; 52 };
53 53
54 template <class VertexShader, class FragmentShader> 54 template <class VertexShader, class FragmentShader>
55 class ProgramBinding : public ProgramBindingBase { 55 class ProgramBinding : public ProgramBindingBase {
56 public: 56 public:
57 ProgramBinding() {} 57 ProgramBinding() {}
58 58
59 void Initialize(ContextProvider* context_provider, 59 void Initialize(ContextProvider* context_provider,
60 TexCoordPrecision precision, 60 TexCoordPrecision precision,
61 SamplerType sampler, 61 SamplerType sampler,
62 BlendMode blend_mode = BlendModeNormal) { 62 BlendMode blend_mode = BlendModeNone) {
63 DCHECK(context_provider); 63 DCHECK(context_provider);
64 DCHECK(!initialized_); 64 DCHECK(!initialized_);
65 65
66 if (context_provider->IsContextLost()) 66 if (context_provider->IsContextLost())
67 return; 67 return;
68 68
69 fragment_shader_.set_blend_mode(blend_mode); 69 fragment_shader_.set_blend_mode(blend_mode);
70 70
71 if (!ProgramBindingBase::Init( 71 if (!ProgramBindingBase::Init(
72 context_provider->ContextGL(), 72 context_provider->ContextGL(),
(...skipping 24 matching lines...) Expand all
97 private: 97 private:
98 VertexShader vertex_shader_; 98 VertexShader vertex_shader_;
99 FragmentShader fragment_shader_; 99 FragmentShader fragment_shader_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(ProgramBinding); 101 DISALLOW_COPY_AND_ASSIGN(ProgramBinding);
102 }; 102 };
103 103
104 } // namespace cc 104 } // namespace cc
105 105
106 #endif // CC_OUTPUT_PROGRAM_BINDING_H_ 106 #endif // CC_OUTPUT_PROGRAM_BINDING_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698