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 // 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 10 matching lines...) Expand all Loading... |
21 namespace gfx { | 21 namespace gfx { |
22 class GLContext; | 22 class GLContext; |
23 class GLSurface; | 23 class GLSurface; |
24 } | 24 } |
25 | 25 |
26 namespace gpu { | 26 namespace gpu { |
27 | 27 |
28 class AsyncPixelTransferDelegate; | 28 class AsyncPixelTransferDelegate; |
29 class AsyncPixelTransferManager; | 29 class AsyncPixelTransferManager; |
30 class StreamTextureManager; | 30 class StreamTextureManager; |
| 31 struct Mailbox; |
31 | 32 |
32 namespace gles2 { | 33 namespace gles2 { |
33 | 34 |
34 class ContextGroup; | 35 class ContextGroup; |
35 class ErrorState; | 36 class ErrorState; |
36 class GLES2Util; | 37 class GLES2Util; |
37 class Logger; | 38 class Logger; |
38 class QueryManager; | 39 class QueryManager; |
39 class VertexArrayManager; | 40 class VertexArrayManager; |
40 | 41 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const DisallowedFeatures& disallowed_features, | 115 const DisallowedFeatures& disallowed_features, |
115 const char* allowed_extensions, | 116 const char* allowed_extensions, |
116 const std::vector<int32>& attribs) = 0; | 117 const std::vector<int32>& attribs) = 0; |
117 | 118 |
118 // Destroys the graphics context. | 119 // Destroys the graphics context. |
119 virtual void Destroy(bool have_context) = 0; | 120 virtual void Destroy(bool have_context) = 0; |
120 | 121 |
121 // Set the surface associated with the default FBO. | 122 // Set the surface associated with the default FBO. |
122 virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0; | 123 virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0; |
123 | 124 |
124 virtual bool SetParent(GLES2Decoder* parent_decoder, | 125 virtual bool ProduceFrontBuffer(const Mailbox& mailbox) = 0; |
125 uint32 parent_texture_id) = 0; | |
126 | 126 |
127 // Resize an offscreen frame buffer. | 127 // Resize an offscreen frame buffer. |
128 virtual bool ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; | 128 virtual bool ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; |
129 | 129 |
130 // Make this decoder's GL context current. | 130 // Make this decoder's GL context current. |
131 virtual bool MakeCurrent() = 0; | 131 virtual bool MakeCurrent() = 0; |
132 | 132 |
133 // Have the decoder release the context. | 133 // Have the decoder release the context. |
134 virtual void ReleaseCurrent() = 0; | 134 virtual void ReleaseCurrent() = 0; |
135 | 135 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 bool debug_; | 242 bool debug_; |
243 bool log_commands_; | 243 bool log_commands_; |
244 static bool testing_force_is_angle_; | 244 static bool testing_force_is_angle_; |
245 | 245 |
246 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 246 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
247 }; | 247 }; |
248 | 248 |
249 } // namespace gles2 | 249 } // namespace gles2 |
250 } // namespace gpu | 250 } // namespace gpu |
251 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 251 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |