| 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 23 matching lines...) Expand all Loading... |
| 34 Error DoCommands(unsigned int num_commands, | 34 Error DoCommands(unsigned int num_commands, |
| 35 const void* buffer, | 35 const void* buffer, |
| 36 int num_entries, | 36 int num_entries, |
| 37 int* entries_processed) override; | 37 int* entries_processed) override; |
| 38 | 38 |
| 39 const char* GetCommandName(unsigned int command_id) const override; | 39 const char* GetCommandName(unsigned int command_id) const override; |
| 40 | 40 |
| 41 bool Initialize(const scoped_refptr<gl::GLSurface>& surface, | 41 bool Initialize(const scoped_refptr<gl::GLSurface>& surface, |
| 42 const scoped_refptr<gl::GLContext>& context, | 42 const scoped_refptr<gl::GLContext>& context, |
| 43 bool offscreen, | 43 bool offscreen, |
| 44 const gfx::Size& offscreen_size, |
| 44 const DisallowedFeatures& disallowed_features, | 45 const DisallowedFeatures& disallowed_features, |
| 45 const ContextCreationAttribHelper& attrib_helper) override; | 46 const ContextCreationAttribHelper& attrib_helper) override; |
| 46 | 47 |
| 47 // Destroys the graphics context. | 48 // Destroys the graphics context. |
| 48 void Destroy(bool have_context) override; | 49 void Destroy(bool have_context) override; |
| 49 | 50 |
| 50 // Set the surface associated with the default FBO. | 51 // Set the surface associated with the default FBO. |
| 51 void SetSurface(const scoped_refptr<gl::GLSurface>& surface) override; | 52 void SetSurface(const scoped_refptr<gl::GLSurface>& surface) override; |
| 52 | 53 |
| 53 // Releases the surface associated with the GL context. | 54 // Releases the surface associated with the GL context. |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 248 |
| 248 // Include the prototypes of all the doer functions from a separate header to | 249 // Include the prototypes of all the doer functions from a separate header to |
| 249 // keep this file clean. | 250 // keep this file clean. |
| 250 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp
es.h" | 251 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp
es.h" |
| 251 }; | 252 }; |
| 252 | 253 |
| 253 } // namespace gles2 | 254 } // namespace gles2 |
| 254 } // namespace gpu | 255 } // namespace gpu |
| 255 | 256 |
| 256 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ | 257 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ |
| OLD | NEW |