| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file contains the GLES2Decoder class. | 5 // This file contains the GLES2Decoder class. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Gets the associated ContextGroup | 103 // Gets the associated ContextGroup |
| 104 virtual ContextGroup* GetContextGroup() = 0; | 104 virtual ContextGroup* GetContextGroup() = 0; |
| 105 | 105 |
| 106 // Sets a callback which is called when a glResizeCHROMIUM command | 106 // Sets a callback which is called when a glResizeCHROMIUM command |
| 107 // is processed. | 107 // is processed. |
| 108 virtual void SetResizeCallback(Callback1<gfx::Size>::Type* callback) = 0; | 108 virtual void SetResizeCallback(Callback1<gfx::Size>::Type* callback) = 0; |
| 109 | 109 |
| 110 // Sets a callback which is called when a SwapBuffers command is processed. | 110 // Sets a callback which is called when a SwapBuffers command is processed. |
| 111 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; | 111 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; |
| 112 | 112 |
| 113 // Sets a callback which is called after a Set/WaitLatch command is processed. | |
| 114 // The bool parameter will be true for SetLatch, and false for a WaitLatch | |
| 115 // that is blocked. An unblocked WaitLatch will not trigger a callback. | |
| 116 virtual void SetLatchCallback(const base::Callback<void(bool)>& callback) = 0; | |
| 117 | |
| 118 // Get the service texture ID corresponding to a client texture ID. | 113 // Get the service texture ID corresponding to a client texture ID. |
| 119 // If no such record is found then return false. | 114 // If no such record is found then return false. |
| 120 virtual bool GetServiceTextureId(uint32 client_texture_id, | 115 virtual bool GetServiceTextureId(uint32 client_texture_id, |
| 121 uint32* service_texture_id); | 116 uint32* service_texture_id); |
| 122 | 117 |
| 123 protected: | 118 protected: |
| 124 GLES2Decoder(); | 119 GLES2Decoder(); |
| 125 | 120 |
| 126 private: | 121 private: |
| 127 bool debug_; | 122 bool debug_; |
| 128 | 123 |
| 129 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 124 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 130 }; | 125 }; |
| 131 | 126 |
| 132 } // namespace gles2 | 127 } // namespace gles2 |
| 133 } // namespace gpu | 128 } // namespace gpu |
| 134 | 129 |
| 135 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 130 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |