| OLD | NEW |
| 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 <GLES2/gl2.h> |
| 8 #include <stddef.h> |
| 7 #include <string.h> | 9 #include <string.h> |
| 8 #include <GLES2/gl2.h> | |
| 9 #include <algorithm> | 10 #include <algorithm> |
| 10 | 11 |
| 11 #include "base/at_exit.h" | 12 #include "base/at_exit.h" |
| 12 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 13 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 14 #include "base/logging.h" | 15 #include "base/logging.h" |
| 15 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
| 17 #include "gpu/command_buffer/service/gpu_switches.h" | 18 #include "gpu/command_buffer/service/gpu_switches.h" |
| 18 #include "ui/gl/gl_implementation.h" | 19 #include "ui/gl/gl_implementation.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 destruction_observers_, | 275 destruction_observers_, |
| 275 OnDestruct(this)); | 276 OnDestruct(this)); |
| 276 | 277 |
| 277 if (compiler_ != NULL) | 278 if (compiler_ != NULL) |
| 278 ShDestruct(compiler_); | 279 ShDestruct(compiler_); |
| 279 } | 280 } |
| 280 | 281 |
| 281 } // namespace gles2 | 282 } // namespace gles2 |
| 282 } // namespace gpu | 283 } // namespace gpu |
| 283 | 284 |
| OLD | NEW |