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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 // ContextSupport implementation. | 205 // ContextSupport implementation. |
206 void Swap() override; | 206 void Swap() override; |
207 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 207 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; |
208 void CommitOverlayPlanes() override; | 208 void CommitOverlayPlanes() override; |
209 void ScheduleOverlayPlane(int plane_z_order, | 209 void ScheduleOverlayPlane(int plane_z_order, |
210 gfx::OverlayTransform plane_transform, | 210 gfx::OverlayTransform plane_transform, |
211 unsigned overlay_texture_id, | 211 unsigned overlay_texture_id, |
212 const gfx::Rect& display_bounds, | 212 const gfx::Rect& display_bounds, |
213 const gfx::RectF& uv_rect) override; | 213 const gfx::RectF& uv_rect) override; |
214 GLuint InsertFutureSyncPointCHROMIUM() override; | |
215 void RetireSyncPointCHROMIUM(GLuint sync_point) override; | |
216 uint64_t ShareGroupTracingGUID() const override; | 214 uint64_t ShareGroupTracingGUID() const override; |
217 | 215 |
218 void GetProgramInfoCHROMIUMHelper(GLuint program, | 216 void GetProgramInfoCHROMIUMHelper(GLuint program, |
219 std::vector<int8_t>* result); | 217 std::vector<int8_t>* result); |
220 GLint GetAttribLocationHelper(GLuint program, const char* name); | 218 GLint GetAttribLocationHelper(GLuint program, const char* name); |
221 GLint GetUniformLocationHelper(GLuint program, const char* name); | 219 GLint GetUniformLocationHelper(GLuint program, const char* name); |
222 GLint GetFragDataIndexEXTHelper(GLuint program, const char* name); | 220 GLint GetFragDataIndexEXTHelper(GLuint program, const char* name); |
223 GLint GetFragDataLocationHelper(GLuint program, const char* name); | 221 GLint GetFragDataLocationHelper(GLuint program, const char* name); |
224 bool GetActiveAttribHelper( | 222 bool GetActiveAttribHelper( |
225 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, | 223 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, |
(...skipping 24 matching lines...) Expand all Loading... |
250 bool GetSyncivHelper( | 248 bool GetSyncivHelper( |
251 GLsync sync, GLenum pname, GLsizei bufsize, GLsizei* length, | 249 GLsync sync, GLenum pname, GLsizei bufsize, GLsizei* length, |
252 GLint* values); | 250 GLint* values); |
253 bool GetQueryObjectValueHelper( | 251 bool GetQueryObjectValueHelper( |
254 const char* function_name, GLuint id, GLenum pname, GLuint64* params); | 252 const char* function_name, GLuint id, GLenum pname, GLuint64* params); |
255 | 253 |
256 void FreeUnusedSharedMemory(); | 254 void FreeUnusedSharedMemory(); |
257 void FreeEverything(); | 255 void FreeEverything(); |
258 | 256 |
259 // ContextSupport implementation. | 257 // ContextSupport implementation. |
260 void SignalSyncPoint(uint32_t sync_point, | |
261 const base::Closure& callback) override; | |
262 void SignalSyncToken(const gpu::SyncToken& sync_token, | 258 void SignalSyncToken(const gpu::SyncToken& sync_token, |
263 const base::Closure& callback) override; | 259 const base::Closure& callback) override; |
264 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 260 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
265 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; | 261 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; |
266 | 262 |
267 // base::trace_event::MemoryDumpProvider implementation. | 263 // base::trace_event::MemoryDumpProvider implementation. |
268 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, | 264 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, |
269 base::trace_event::ProcessMemoryDump* pmd) override; | 265 base::trace_event::ProcessMemoryDump* pmd) override; |
270 | 266 |
271 void SetErrorMessageCallback( | 267 void SetErrorMessageCallback( |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 | 869 |
874 inline bool GLES2Implementation::GetTexParameterivHelper( | 870 inline bool GLES2Implementation::GetTexParameterivHelper( |
875 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 871 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
876 return false; | 872 return false; |
877 } | 873 } |
878 | 874 |
879 } // namespace gles2 | 875 } // namespace gles2 |
880 } // namespace gpu | 876 } // namespace gpu |
881 | 877 |
882 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 878 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |