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 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "gpu/command_buffer/client/client_context_state.h" | 23 #include "gpu/command_buffer/client/client_context_state.h" |
24 #include "gpu/command_buffer/client/context_support.h" | 24 #include "gpu/command_buffer/client/context_support.h" |
25 #include "gpu/command_buffer/client/gles2_impl_export.h" | 25 #include "gpu/command_buffer/client/gles2_impl_export.h" |
26 #include "gpu/command_buffer/client/gles2_interface.h" | 26 #include "gpu/command_buffer/client/gles2_interface.h" |
27 #include "gpu/command_buffer/client/mapped_memory.h" | 27 #include "gpu/command_buffer/client/mapped_memory.h" |
28 #include "gpu/command_buffer/client/ref_counted.h" | 28 #include "gpu/command_buffer/client/ref_counted.h" |
29 #include "gpu/command_buffer/client/share_group.h" | 29 #include "gpu/command_buffer/client/share_group.h" |
30 #include "gpu/command_buffer/common/capabilities.h" | 30 #include "gpu/command_buffer/common/capabilities.h" |
31 #include "gpu/command_buffer/common/debug_marker_manager.h" | 31 #include "gpu/command_buffer/common/debug_marker_manager.h" |
32 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 32 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 33 #include "ui/gfx/buffer_types.h" |
33 | 34 |
34 #if !defined(NDEBUG) && !defined(__native_client__) && !defined(GLES2_CONFORMANC
E_TESTS) // NOLINT | 35 #if !defined(NDEBUG) && !defined(__native_client__) && !defined(GLES2_CONFORMANC
E_TESTS) // NOLINT |
35 #if defined(GLES2_INLINE_OPTIMIZATION) | 36 #if defined(GLES2_INLINE_OPTIMIZATION) |
36 // TODO(gman): Replace with macros that work with inline optmization. | 37 // TODO(gman): Replace with macros that work with inline optmization. |
37 #define GPU_CLIENT_SINGLE_THREAD_CHECK() | 38 #define GPU_CLIENT_SINGLE_THREAD_CHECK() |
38 #define GPU_CLIENT_LOG(args) | 39 #define GPU_CLIENT_LOG(args) |
39 #define GPU_CLIENT_LOG_CODE_BLOCK(code) | 40 #define GPU_CLIENT_LOG_CODE_BLOCK(code) |
40 #define GPU_CLIENT_DCHECK_CODE_BLOCK(code) | 41 #define GPU_CLIENT_DCHECK_CODE_BLOCK(code) |
41 #else | 42 #else |
42 #include "base/logging.h" | 43 #include "base/logging.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) override; | 199 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) override; |
199 void GetVertexAttribIiv(GLuint index, GLenum pname, GLint* params) override; | 200 void GetVertexAttribIiv(GLuint index, GLenum pname, GLint* params) override; |
200 void GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params) override; | 201 void GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params) override; |
201 | 202 |
202 // ContextSupport implementation. | 203 // ContextSupport implementation. |
203 void Swap() override; | 204 void Swap() override; |
204 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 205 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; |
205 void CommitOverlayPlanes() override; | 206 void CommitOverlayPlanes() override; |
206 void ScheduleOverlayPlane(int plane_z_order, | 207 void ScheduleOverlayPlane(int plane_z_order, |
207 gfx::OverlayTransform plane_transform, | 208 gfx::OverlayTransform plane_transform, |
| 209 gfx::BufferFormat optimal_storage_format, |
208 unsigned overlay_texture_id, | 210 unsigned overlay_texture_id, |
209 const gfx::Rect& display_bounds, | 211 const gfx::Rect& display_bounds, |
210 const gfx::RectF& uv_rect) override; | 212 const gfx::RectF& uv_rect, |
| 213 bool handle_scaling) override; |
211 GLuint InsertFutureSyncPointCHROMIUM() override; | 214 GLuint InsertFutureSyncPointCHROMIUM() override; |
212 void RetireSyncPointCHROMIUM(GLuint sync_point) override; | 215 void RetireSyncPointCHROMIUM(GLuint sync_point) override; |
213 uint64_t ShareGroupTracingGUID() const override; | 216 uint64_t ShareGroupTracingGUID() const override; |
214 | 217 |
215 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); | 218 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); |
216 GLint GetAttribLocationHelper(GLuint program, const char* name); | 219 GLint GetAttribLocationHelper(GLuint program, const char* name); |
217 GLint GetUniformLocationHelper(GLuint program, const char* name); | 220 GLint GetUniformLocationHelper(GLuint program, const char* name); |
218 GLint GetFragDataIndexEXTHelper(GLuint program, const char* name); | 221 GLint GetFragDataIndexEXTHelper(GLuint program, const char* name); |
219 GLint GetFragDataLocationHelper(GLuint program, const char* name); | 222 GLint GetFragDataLocationHelper(GLuint program, const char* name); |
220 bool GetActiveAttribHelper( | 223 bool GetActiveAttribHelper( |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 | 859 |
857 inline bool GLES2Implementation::GetTexParameterivHelper( | 860 inline bool GLES2Implementation::GetTexParameterivHelper( |
858 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 861 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
859 return false; | 862 return false; |
860 } | 863 } |
861 | 864 |
862 } // namespace gles2 | 865 } // namespace gles2 |
863 } // namespace gpu | 866 } // namespace gpu |
864 | 867 |
865 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 868 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |