| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // Destroys the graphics context. | 61 // Destroys the graphics context. |
| 62 virtual void Destroy() = 0; | 62 virtual void Destroy() = 0; |
| 63 | 63 |
| 64 // Resize an offscreen frame buffer. | 64 // Resize an offscreen frame buffer. |
| 65 virtual void ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; | 65 virtual void ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; |
| 66 | 66 |
| 67 // Make this decoder's GL context current. | 67 // Make this decoder's GL context current. |
| 68 virtual bool MakeCurrent() = 0; | 68 virtual bool MakeCurrent() = 0; |
| 69 | 69 |
| 70 // Gets a service id by client id. | |
| 71 virtual uint32 GetServiceIdForTesting(uint32 client_id) = 0; | |
| 72 | |
| 73 // Gets the GLES2 Util which holds info. | 70 // Gets the GLES2 Util which holds info. |
| 74 virtual GLES2Util* GetGLES2Util() = 0; | 71 virtual GLES2Util* GetGLES2Util() = 0; |
| 75 | 72 |
| 76 // Gets the associated GLContext. | 73 // Gets the associated GLContext. |
| 77 virtual gfx::GLContext* GetGLContext() = 0; | 74 virtual gfx::GLContext* GetGLContext() = 0; |
| 78 | 75 |
| 79 // Sets a callback which is called when a SwapBuffers command is processed. | 76 // Sets a callback which is called when a SwapBuffers command is processed. |
| 80 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; | 77 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; |
| 81 | 78 |
| 82 protected: | 79 protected: |
| 83 explicit GLES2Decoder(ContextGroup* group); | 80 explicit GLES2Decoder(ContextGroup* group); |
| 84 | 81 |
| 85 ContextGroup* group_; | 82 ContextGroup* group_; |
| 86 | 83 |
| 87 private: | 84 private: |
| 88 bool debug_; | 85 bool debug_; |
| 89 | 86 |
| 90 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 87 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 91 }; | 88 }; |
| 92 | 89 |
| 93 } // namespace gles2 | 90 } // namespace gles2 |
| 94 } // namespace gpu | 91 } // namespace gpu |
| 95 | 92 |
| 96 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 93 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |