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 // A class to emulate GLES2 over command buffers. | 5 // A class to emulate GLES2 over command buffers. |
6 | 6 |
7 #include "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
8 | 8 |
9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
10 #include <GLES2/gl2ext.h> | 10 #include <GLES2/gl2ext.h> |
11 #include <GLES2/gl2extchromium.h> | 11 #include <GLES2/gl2extchromium.h> |
12 #include <GLES3/gl3.h> | 12 #include <GLES3/gl3.h> |
13 #include <stddef.h> | 13 #include <stddef.h> |
14 #include <stdint.h> | 14 #include <stdint.h> |
15 #include <algorithm> | 15 #include <algorithm> |
16 #include <map> | 16 #include <map> |
17 #include <set> | 17 #include <set> |
18 #include <sstream> | 18 #include <sstream> |
19 #include <string> | 19 #include <string> |
20 #include "base/compiler_specific.h" | 20 #include "base/compiler_specific.h" |
21 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
22 #include "base/sys_info.h" | 22 #include "base/sys_info.h" |
23 #include "base/thread_task_runner_handle.h" | 23 #include "base/thread_task_runner_handle.h" |
24 #include "base/trace_event/memory_allocator_dump.h" | 24 #include "base/trace_event/memory_allocator_dump.h" |
25 #include "base/trace_event/memory_dump_manager.h" | 25 #include "base/trace_event/memory_dump_manager.h" |
26 #include "base/trace_event/process_memory_dump.h" | 26 #include "base/trace_event/process_memory_dump.h" |
| 27 #include "base/trace_event/trace_event.h" |
27 #include "gpu/command_buffer/client/buffer_tracker.h" | 28 #include "gpu/command_buffer/client/buffer_tracker.h" |
28 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 29 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
29 #include "gpu/command_buffer/client/gpu_control.h" | 30 #include "gpu/command_buffer/client/gpu_control.h" |
30 #include "gpu/command_buffer/client/program_info_manager.h" | 31 #include "gpu/command_buffer/client/program_info_manager.h" |
31 #include "gpu/command_buffer/client/query_tracker.h" | 32 #include "gpu/command_buffer/client/query_tracker.h" |
32 #include "gpu/command_buffer/client/transfer_buffer.h" | 33 #include "gpu/command_buffer/client/transfer_buffer.h" |
33 #include "gpu/command_buffer/client/vertex_array_object_manager.h" | 34 #include "gpu/command_buffer/client/vertex_array_object_manager.h" |
34 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 35 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
35 #include "gpu/command_buffer/common/id_allocator.h" | 36 #include "gpu/command_buffer/common/id_allocator.h" |
36 #include "gpu/command_buffer/common/sync_token.h" | 37 #include "gpu/command_buffer/common/sync_token.h" |
37 #include "gpu/command_buffer/common/trace_event.h" | |
38 #include "ui/gfx/geometry/rect.h" | 38 #include "ui/gfx/geometry/rect.h" |
39 #include "ui/gfx/geometry/rect_f.h" | 39 #include "ui/gfx/geometry/rect_f.h" |
40 | 40 |
41 #if defined(GPU_CLIENT_DEBUG) | 41 #if defined(GPU_CLIENT_DEBUG) |
42 #include "base/command_line.h" | 42 #include "base/command_line.h" |
43 #include "gpu/command_buffer/client/gpu_switches.h" | 43 #include "gpu/command_buffer/client/gpu_switches.h" |
44 #endif | 44 #endif |
45 | 45 |
46 namespace gpu { | 46 namespace gpu { |
47 namespace gles2 { | 47 namespace gles2 { |
(...skipping 6547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6595 CheckGLError(); | 6595 CheckGLError(); |
6596 } | 6596 } |
6597 | 6597 |
6598 // Include the auto-generated part of this file. We split this because it means | 6598 // Include the auto-generated part of this file. We split this because it means |
6599 // we can easily edit the non-auto generated parts right here in this file | 6599 // we can easily edit the non-auto generated parts right here in this file |
6600 // instead of having to edit some template or the code generator. | 6600 // instead of having to edit some template or the code generator. |
6601 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 6601 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
6602 | 6602 |
6603 } // namespace gles2 | 6603 } // namespace gles2 |
6604 } // namespace gpu | 6604 } // namespace gpu |
OLD | NEW |