| 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/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "gpu/command_buffer/service/memory_tracking.h" | 50 #include "gpu/command_buffer/service/memory_tracking.h" |
| 51 #include "gpu/command_buffer/service/program_manager.h" | 51 #include "gpu/command_buffer/service/program_manager.h" |
| 52 #include "gpu/command_buffer/service/query_manager.h" | 52 #include "gpu/command_buffer/service/query_manager.h" |
| 53 #include "gpu/command_buffer/service/renderbuffer_manager.h" | 53 #include "gpu/command_buffer/service/renderbuffer_manager.h" |
| 54 #include "gpu/command_buffer/service/shader_manager.h" | 54 #include "gpu/command_buffer/service/shader_manager.h" |
| 55 #include "gpu/command_buffer/service/shader_translator.h" | 55 #include "gpu/command_buffer/service/shader_translator.h" |
| 56 #include "gpu/command_buffer/service/shader_translator_cache.h" | 56 #include "gpu/command_buffer/service/shader_translator_cache.h" |
| 57 #include "gpu/command_buffer/service/texture_manager.h" | 57 #include "gpu/command_buffer/service/texture_manager.h" |
| 58 #include "gpu/command_buffer/service/vertex_array_manager.h" | 58 #include "gpu/command_buffer/service/vertex_array_manager.h" |
| 59 #include "gpu/command_buffer/service/vertex_attrib_manager.h" | 59 #include "gpu/command_buffer/service/vertex_attrib_manager.h" |
| 60 #include "third_party/smhasher/src/City.h" |
| 60 #include "ui/gl/gl_bindings.h" | 61 #include "ui/gl/gl_bindings.h" |
| 61 #include "ui/gl/gl_fence.h" | 62 #include "ui/gl/gl_fence.h" |
| 62 #include "ui/gl/gl_image.h" | 63 #include "ui/gl/gl_image.h" |
| 63 #include "ui/gl/gl_implementation.h" | 64 #include "ui/gl/gl_implementation.h" |
| 64 #include "ui/gl/gl_surface.h" | 65 #include "ui/gl/gl_surface.h" |
| 65 | 66 |
| 66 #if defined(OS_MACOSX) | 67 #if defined(OS_MACOSX) |
| 67 #include "ui/gl/io_surface_support_mac.h" | 68 #include "ui/gl/io_surface_support_mac.h" |
| 68 #endif | 69 #endif |
| 69 | 70 |
| 70 #if defined(OS_WIN) | 71 #if defined(OS_WIN) |
| 71 #include "base/win/win_util.h" | 72 #include "base/win/win_util.h" |
| 72 #endif | 73 #endif |
| 73 | 74 |
| 74 // TODO(zmo): we can't include "City.h" due to type def conflicts. | |
| 75 extern uint64 CityHash64(const char*, size_t); | |
| 76 | |
| 77 namespace gpu { | 75 namespace gpu { |
| 78 namespace gles2 { | 76 namespace gles2 { |
| 79 | 77 |
| 80 namespace { | 78 namespace { |
| 81 | 79 |
| 82 static const char kOESDerivativeExtension[] = "GL_OES_standard_derivatives"; | 80 static const char kOESDerivativeExtension[] = "GL_OES_standard_derivatives"; |
| 83 static const char kEXTFragDepthExtension[] = "GL_EXT_frag_depth"; | 81 static const char kEXTFragDepthExtension[] = "GL_EXT_frag_depth"; |
| 84 static const char kEXTDrawBuffersExtension[] = "GL_EXT_draw_buffers"; | 82 static const char kEXTDrawBuffersExtension[] = "GL_EXT_draw_buffers"; |
| 85 static const char kEXTShaderTextureLodExtension[] = "GL_EXT_shader_texture_lod"; | 83 static const char kEXTShaderTextureLodExtension[] = "GL_EXT_shader_texture_lod"; |
| 86 | 84 |
| (...skipping 10655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10742 } | 10740 } |
| 10743 } | 10741 } |
| 10744 | 10742 |
| 10745 // Include the auto-generated part of this file. We split this because it means | 10743 // Include the auto-generated part of this file. We split this because it means |
| 10746 // we can easily edit the non-auto generated parts right here in this file | 10744 // we can easily edit the non-auto generated parts right here in this file |
| 10747 // instead of having to edit some template or the code generator. | 10745 // instead of having to edit some template or the code generator. |
| 10748 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10746 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 10749 | 10747 |
| 10750 } // namespace gles2 | 10748 } // namespace gles2 |
| 10751 } // namespace gpu | 10749 } // namespace gpu |
| OLD | NEW |