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

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

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « gpu/command_buffer/service/gpu_switches.cc ('k') | gpu/config/gpu_driver_bug_list_json.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 (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 #include "gpu/command_buffer/service/shader_translator.h" 5 #include "gpu/command_buffer/service/shader_translator.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/at_exit.h" 11 #include "base/at_exit.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/debug/trace_event.h" 13 #include "base/debug/trace_event.h"
14 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "ui/gl/gl_switches.h" 17 #include "gpu/command_buffer/service/gpu_switches.h"
18 18
19 namespace gpu { 19 namespace gpu {
20 namespace gles2 { 20 namespace gles2 {
21 21
22 namespace { 22 namespace {
23 23
24 class ShaderTranslatorInitializer { 24 class ShaderTranslatorInitializer {
25 public: 25 public:
26 ShaderTranslatorInitializer() { 26 ShaderTranslatorInitializer() {
27 TRACE_EVENT0("gpu", "ShInitialize"); 27 TRACE_EVENT0("gpu", "ShInitialize");
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 destruction_observers_, 205 destruction_observers_,
206 OnDestruct(this)); 206 OnDestruct(this));
207 207
208 if (compiler_ != NULL) 208 if (compiler_ != NULL)
209 ShDestruct(compiler_); 209 ShDestruct(compiler_);
210 } 210 }
211 211
212 } // namespace gles2 212 } // namespace gles2
213 } // namespace gpu 213 } // namespace gpu
214 214
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.cc ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698