OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 GLES2DecoderPassthroughImpl class. | 5 // This file contains the GLES2DecoderPassthroughImpl class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Releases the surface associated with the GL context. | 53 // Releases the surface associated with the GL context. |
54 // The decoder should not be used until a new surface is set. | 54 // The decoder should not be used until a new surface is set. |
55 void ReleaseSurface() override; | 55 void ReleaseSurface() override; |
56 | 56 |
57 void TakeFrontBuffer(const Mailbox& mailbox) override; | 57 void TakeFrontBuffer(const Mailbox& mailbox) override; |
58 | 58 |
59 void ReturnFrontBuffer(const Mailbox& mailbox, bool is_lost) override; | 59 void ReturnFrontBuffer(const Mailbox& mailbox, bool is_lost) override; |
60 | 60 |
61 // Resize an offscreen frame buffer. | 61 // Resize an offscreen frame buffer. |
62 bool ResizeOffscreenFrameBuffer(const gfx::Size& size) override; | 62 bool ResizeOffscreenFramebuffer(const gfx::Size& size) override; |
63 | 63 |
64 // Make this decoder's GL context current. | 64 // Make this decoder's GL context current. |
65 bool MakeCurrent() override; | 65 bool MakeCurrent() override; |
66 | 66 |
67 // Gets the GLES2 Util which holds info. | 67 // Gets the GLES2 Util which holds info. |
68 GLES2Util* GetGLES2Util() override; | 68 GLES2Util* GetGLES2Util() override; |
69 | 69 |
70 // Gets the associated GLContext. | 70 // Gets the associated GLContext. |
71 gl::GLContext* GetGLContext() override; | 71 gl::GLContext* GetGLContext() override; |
72 | 72 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 // Include the prototypes of all the doer functions from a separate header to | 251 // Include the prototypes of all the doer functions from a separate header to |
252 // keep this file clean. | 252 // keep this file clean. |
253 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp
es.h" | 253 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp
es.h" |
254 }; | 254 }; |
255 | 255 |
256 } // namespace gles2 | 256 } // namespace gles2 |
257 } // namespace gpu | 257 } // namespace gpu |
258 | 258 |
259 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ | 259 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ |
OLD | NEW |