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 <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 GLuint bound_texture_2d; | 321 GLuint bound_texture_2d; |
322 | 322 |
323 // texture currently bound to this unit's GL_TEXTURE_CUBE_MAP with | 323 // texture currently bound to this unit's GL_TEXTURE_CUBE_MAP with |
324 // glBindTexture | 324 // glBindTexture |
325 GLuint bound_texture_cube_map; | 325 GLuint bound_texture_cube_map; |
326 }; | 326 }; |
327 | 327 |
328 // Checks for single threaded access. | 328 // Checks for single threaded access. |
329 class SingleThreadChecker { | 329 class SingleThreadChecker { |
330 public: | 330 public: |
331 SingleThreadChecker(GLES2Implementation* gles2_implementation); | 331 explicit SingleThreadChecker(GLES2Implementation* gles2_implementation); |
332 ~SingleThreadChecker(); | 332 ~SingleThreadChecker(); |
333 | 333 |
334 private: | 334 private: |
335 GLES2Implementation* gles2_implementation_; | 335 GLES2Implementation* gles2_implementation_; |
336 }; | 336 }; |
337 | 337 |
338 // Gets the value of the result. | 338 // Gets the value of the result. |
339 template <typename T> | 339 template <typename T> |
340 T GetResultAs() { | 340 T GetResultAs() { |
341 return static_cast<T>(GetResultBuffer()); | 341 return static_cast<T>(GetResultBuffer()); |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 624 |
625 inline bool GLES2Implementation::GetTexParameterivHelper( | 625 inline bool GLES2Implementation::GetTexParameterivHelper( |
626 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 626 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
627 return false; | 627 return false; |
628 } | 628 } |
629 | 629 |
630 } // namespace gles2 | 630 } // namespace gles2 |
631 } // namespace gpu | 631 } // namespace gpu |
632 | 632 |
633 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 633 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |