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> |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
| 15 #include "base/at_exit.h" |
15 #include "base/atomicops.h" | 16 #include "base/atomicops.h" |
16 #include "base/at_exit.h" | |
17 #include "base/bind.h" | 17 #include "base/bind.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/debug/trace_event.h" | 19 #include "base/debug/trace_event.h" |
20 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
21 #include "base/mac/scoped_cftyperef.h" | 21 #include "base/mac/scoped_cftyperef.h" |
22 #endif | 22 #endif |
23 #include "base/memory/scoped_ptr.h" | 23 #include "base/memory/scoped_ptr.h" |
24 #include "base/memory/weak_ptr.h" | 24 #include "base/memory/weak_ptr.h" |
25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
26 #define GLES2_GPU_SERVICE 1 | 26 #define GLES2_GPU_SERVICE 1 |
(...skipping 17 matching lines...) Expand all Loading... |
44 #include "gpu/command_buffer/service/shader_translator.h" | 44 #include "gpu/command_buffer/service/shader_translator.h" |
45 #include "gpu/command_buffer/service/stream_texture.h" | 45 #include "gpu/command_buffer/service/stream_texture.h" |
46 #include "gpu/command_buffer/service/stream_texture_manager.h" | 46 #include "gpu/command_buffer/service/stream_texture_manager.h" |
47 #include "gpu/command_buffer/service/texture_definition.h" | 47 #include "gpu/command_buffer/service/texture_definition.h" |
48 #include "gpu/command_buffer/service/texture_manager.h" | 48 #include "gpu/command_buffer/service/texture_manager.h" |
49 #include "gpu/command_buffer/service/vertex_attrib_manager.h" | 49 #include "gpu/command_buffer/service/vertex_attrib_manager.h" |
50 #include "ui/gfx/gl/gl_context.h" | 50 #include "ui/gfx/gl/gl_context.h" |
51 #include "ui/gfx/gl/gl_implementation.h" | 51 #include "ui/gfx/gl/gl_implementation.h" |
52 #include "ui/gfx/gl/gl_surface.h" | 52 #include "ui/gfx/gl/gl_surface.h" |
53 #if defined(OS_MACOSX) | 53 #if defined(OS_MACOSX) |
54 #include "ui/gfx/surface/io_surface_support_mac.h" | 54 #include "ui/surface/io_surface_support_mac.h" |
55 #endif | 55 #endif |
56 | 56 |
57 #if !defined(GL_DEPTH24_STENCIL8) | 57 #if !defined(GL_DEPTH24_STENCIL8) |
58 #define GL_DEPTH24_STENCIL8 0x88F0 | 58 #define GL_DEPTH24_STENCIL8 0x88F0 |
59 #endif | 59 #endif |
60 | 60 |
61 namespace gpu { | 61 namespace gpu { |
62 namespace gles2 { | 62 namespace gles2 { |
63 | 63 |
64 namespace { | 64 namespace { |
(...skipping 8543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8608 BindAndApplyTextureParameters(info); | 8608 BindAndApplyTextureParameters(info); |
8609 } | 8609 } |
8610 | 8610 |
8611 // Include the auto-generated part of this file. We split this because it means | 8611 // Include the auto-generated part of this file. We split this because it means |
8612 // we can easily edit the non-auto generated parts right here in this file | 8612 // we can easily edit the non-auto generated parts right here in this file |
8613 // instead of having to edit some template or the code generator. | 8613 // instead of having to edit some template or the code generator. |
8614 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 8614 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
8615 | 8615 |
8616 } // namespace gles2 | 8616 } // namespace gles2 |
8617 } // namespace gpu | 8617 } // namespace gpu |
OLD | NEW |