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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual gfx::GLContext* GetGLContext() = 0; | 100 virtual gfx::GLContext* GetGLContext() = 0; |
101 | 101 |
102 // Gets the associated ContextGroup | 102 // Gets the associated ContextGroup |
103 virtual ContextGroup* GetContextGroup() = 0; | 103 virtual ContextGroup* GetContextGroup() = 0; |
104 | 104 |
105 // Sets a callback which is called when a glResizeCHROMIUM command | 105 // Sets a callback which is called when a glResizeCHROMIUM command |
106 // is processed. | 106 // is processed. |
107 virtual void SetResizeCallback( | 107 virtual void SetResizeCallback( |
108 Callback1<gfx::Size>::Type* callback) = 0; | 108 Callback1<gfx::Size>::Type* callback) = 0; |
109 | 109 |
| 110 virtual void SetSurfaceVisibleCallback( |
| 111 Callback1<bool>::Type* callback) = 0; |
| 112 |
110 #if defined(OS_MACOSX) | 113 #if defined(OS_MACOSX) |
111 // Sets a callback which is called when a SwapBuffers command is processed. | 114 // Sets a callback which is called when a SwapBuffers command is processed. |
112 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; | 115 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; |
113 #endif | 116 #endif |
114 | 117 |
115 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; | 118 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; |
116 | 119 |
117 // Get the service texture ID corresponding to a client texture ID. | 120 // Get the service texture ID corresponding to a client texture ID. |
118 // If no such record is found then return false. | 121 // If no such record is found then return false. |
119 virtual bool GetServiceTextureId(uint32 client_texture_id, | 122 virtual bool GetServiceTextureId(uint32 client_texture_id, |
120 uint32* service_texture_id); | 123 uint32* service_texture_id); |
121 | 124 |
122 // Provides detail about a lost context if one occurred. | 125 // Provides detail about a lost context if one occurred. |
123 virtual error::ContextLostReason GetContextLostReason() = 0; | 126 virtual error::ContextLostReason GetContextLostReason() = 0; |
124 | 127 |
125 protected: | 128 protected: |
126 GLES2Decoder(); | 129 GLES2Decoder(); |
127 | 130 |
128 private: | 131 private: |
129 bool debug_; | 132 bool debug_; |
130 | 133 |
131 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 134 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
132 }; | 135 }; |
133 | 136 |
134 } // namespace gles2 | 137 } // namespace gles2 |
135 } // namespace gpu | 138 } // namespace gpu |
136 | 139 |
137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 140 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |