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 "../client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
11 #include <queue> | 11 #include <queue> |
12 #include <set> | 12 #include <set> |
13 #include <limits> | 13 #include <limits> |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 #include <string.h> | 15 #include <string.h> |
16 #include <GLES2/gl2ext.h> | 16 #include <GLES2/gl2ext.h> |
17 #include <GLES2/gl2extchromium.h> | 17 #include <GLES2/gl2extchromium.h> |
18 #include "../client/buffer_tracker.h" | 18 #include "gpu/command_buffer/client/buffer_tracker.h" |
19 #include "../client/gpu_memory_buffer.h" | 19 #include "gpu/command_buffer/client/gpu_memory_buffer.h" |
20 #include "../client/gpu_memory_buffer_tracker.h" | 20 #include "gpu/command_buffer/client/gpu_memory_buffer_tracker.h" |
21 #include "../client/mapped_memory.h" | 21 #include "gpu/command_buffer/client/mapped_memory.h" |
22 #include "../client/program_info_manager.h" | 22 #include "gpu/command_buffer/client/program_info_manager.h" |
23 #include "../client/query_tracker.h" | 23 #include "gpu/command_buffer/client/query_tracker.h" |
24 #include "../client/transfer_buffer.h" | 24 #include "gpu/command_buffer/client/transfer_buffer.h" |
25 #include "../client/vertex_array_object_manager.h" | 25 #include "gpu/command_buffer/client/vertex_array_object_manager.h" |
26 #include "../common/gles2_cmd_utils.h" | 26 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
27 #include "../common/trace_event.h" | 27 #include "gpu/command_buffer/common/trace_event.h" |
28 | 28 |
29 #if defined(__native_client__) && !defined(GLES2_SUPPORT_CLIENT_SIDE_ARRAYS) | 29 #if defined(__native_client__) && !defined(GLES2_SUPPORT_CLIENT_SIDE_ARRAYS) |
30 #define GLES2_SUPPORT_CLIENT_SIDE_ARRAYS | 30 #define GLES2_SUPPORT_CLIENT_SIDE_ARRAYS |
31 #endif | 31 #endif |
32 | 32 |
33 #if defined(GPU_CLIENT_DEBUG) | 33 #if defined(GPU_CLIENT_DEBUG) |
34 #include "ui/gl/gl_switches.h" | 34 #include "ui/gl/gl_switches.h" |
35 #include "base/command_line.h" | 35 #include "base/command_line.h" |
36 #endif | 36 #endif |
37 | 37 |
(...skipping 3816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3854 << image_id << ", " | 3854 << image_id << ", " |
3855 << GLES2Util::GetStringBufferParameter(pname) << ", " | 3855 << GLES2Util::GetStringBufferParameter(pname) << ", " |
3856 << static_cast<const void*>(params) << ")"); | 3856 << static_cast<const void*>(params) << ")"); |
3857 GetImageParameterivCHROMIUM(image_id, pname, params); | 3857 GetImageParameterivCHROMIUM(image_id, pname, params); |
3858 CheckGLError(); | 3858 CheckGLError(); |
3859 } | 3859 } |
3860 | 3860 |
3861 // Include the auto-generated part of this file. We split this because it means | 3861 // Include the auto-generated part of this file. We split this because it means |
3862 // we can easily edit the non-auto generated parts right here in this file | 3862 // we can easily edit the non-auto generated parts right here in this file |
3863 // instead of having to edit some template or the code generator. | 3863 // instead of having to edit some template or the code generator. |
3864 #include "../client/gles2_implementation_impl_autogen.h" | 3864 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
3865 | 3865 |
3866 } // namespace gles2 | 3866 } // namespace gles2 |
3867 } // namespace gpu | 3867 } // namespace gpu |
OLD | NEW |