| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 192 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; |
| 193 void CommitOverlayPlanes() override; | 193 void CommitOverlayPlanes() override; |
| 194 void ScheduleOverlayPlane(int plane_z_order, | 194 void ScheduleOverlayPlane(int plane_z_order, |
| 195 gfx::OverlayTransform plane_transform, | 195 gfx::OverlayTransform plane_transform, |
| 196 unsigned overlay_texture_id, | 196 unsigned overlay_texture_id, |
| 197 const gfx::Rect& display_bounds, | 197 const gfx::Rect& display_bounds, |
| 198 const gfx::RectF& uv_rect) override; | 198 const gfx::RectF& uv_rect) override; |
| 199 uint64_t ShareGroupTracingGUID() const override; | 199 uint64_t ShareGroupTracingGUID() const override; |
| 200 void SetErrorMessageCallback( | 200 void SetErrorMessageCallback( |
| 201 const base::Callback<void(const char*, int32_t)>& callback) override; | 201 const base::Callback<void(const char*, int32_t)>& callback) override; |
| 202 void SetClientVisible(int client_id, bool is_visible) override; | |
| 203 bool AnyClientsVisible() const override; | |
| 204 | 202 |
| 205 // TODO(danakj): Move to ContextSupport once ContextProvider doesn't need to | 203 // TODO(danakj): Move to ContextSupport once ContextProvider doesn't need to |
| 206 // intercept it. | 204 // intercept it. |
| 207 void SetLostContextCallback(const base::Closure& callback); | 205 void SetLostContextCallback(const base::Closure& callback); |
| 208 | 206 |
| 209 void GetProgramInfoCHROMIUMHelper(GLuint program, | 207 void GetProgramInfoCHROMIUMHelper(GLuint program, |
| 210 std::vector<int8_t>* result); | 208 std::vector<int8_t>* result); |
| 211 GLint GetAttribLocationHelper(GLuint program, const char* name); | 209 GLint GetAttribLocationHelper(GLuint program, const char* name); |
| 212 GLint GetUniformLocationHelper(GLuint program, const char* name); | 210 GLint GetUniformLocationHelper(GLuint program, const char* name); |
| 213 GLint GetFragDataIndexEXTHelper(GLuint program, const char* name); | 211 GLint GetFragDataIndexEXTHelper(GLuint program, const char* name); |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 int current_trace_stack_; | 814 int current_trace_stack_; |
| 817 | 815 |
| 818 GpuControl* gpu_control_; | 816 GpuControl* gpu_control_; |
| 819 | 817 |
| 820 Capabilities capabilities_; | 818 Capabilities capabilities_; |
| 821 | 819 |
| 822 // Flag to indicate whether the implementation can retain resources, or | 820 // Flag to indicate whether the implementation can retain resources, or |
| 823 // whether it should aggressively free them. | 821 // whether it should aggressively free them. |
| 824 bool aggressively_free_resources_; | 822 bool aggressively_free_resources_; |
| 825 | 823 |
| 826 // The set of IDs of all visible clients. | |
| 827 std::set<int> visible_clients_; | |
| 828 | |
| 829 // Result of last GetString(GL_EXTENSIONS), used to keep | 824 // Result of last GetString(GL_EXTENSIONS), used to keep |
| 830 // GetString(GL_EXTENSIONS), GetStringi(GL_EXTENSIONS, index) and | 825 // GetString(GL_EXTENSIONS), GetStringi(GL_EXTENSIONS, index) and |
| 831 // GetIntegerv(GL_NUM_EXTENSIONS) in sync. This points to gl_strings, valid | 826 // GetIntegerv(GL_NUM_EXTENSIONS) in sync. This points to gl_strings, valid |
| 832 // forever. | 827 // forever. |
| 833 const char* cached_extension_string_; | 828 const char* cached_extension_string_; |
| 834 | 829 |
| 835 // Populated if cached_extension_string_ != nullptr. These point to | 830 // Populated if cached_extension_string_ != nullptr. These point to |
| 836 // gl_strings, valid forever. | 831 // gl_strings, valid forever. |
| 837 std::vector<const char*> cached_extensions_; | 832 std::vector<const char*> cached_extensions_; |
| 838 | 833 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 | 871 |
| 877 inline bool GLES2Implementation::GetTexParameterivHelper( | 872 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 878 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 873 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 879 return false; | 874 return false; |
| 880 } | 875 } |
| 881 | 876 |
| 882 } // namespace gles2 | 877 } // namespace gles2 |
| 883 } // namespace gpu | 878 } // namespace gpu |
| 884 | 879 |
| 885 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 880 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |