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

Side by Side Diff: gpu/command_buffer/service/shader_translator.h

Issue 903273002: Update from https://crrev.com/315085 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void AddDestructionObserver(DestructionObserver* observer); 103 void AddDestructionObserver(DestructionObserver* observer);
104 void RemoveDestructionObserver(DestructionObserver* observer); 104 void RemoveDestructionObserver(DestructionObserver* observer);
105 105
106 private: 106 private:
107 friend class base::RefCounted<ShaderTranslator>; 107 friend class base::RefCounted<ShaderTranslator>;
108 108
109 ~ShaderTranslator() override; 109 ~ShaderTranslator() override;
110 int GetCompileOptions() const; 110 int GetCompileOptions() const;
111 111
112 ShHandle compiler_; 112 ShHandle compiler_;
113 ShBuiltInResources compiler_options_;
114 bool implementation_is_glsl_es_; 113 bool implementation_is_glsl_es_;
115 ShCompileOptions driver_bug_workarounds_; 114 ShCompileOptions driver_bug_workarounds_;
116 ObserverList<DestructionObserver> destruction_observers_; 115 ObserverList<DestructionObserver> destruction_observers_;
117 116
118 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator); 117 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator);
119 }; 118 };
120 119
121 } // namespace gles2 120 } // namespace gles2
122 } // namespace gpu 121 } // namespace gpu
123 122
124 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ 123 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_
125 124
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/shader_manager_unittest.cc ('k') | gpu/command_buffer/service/shader_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698