| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 explicit GLES2DecoderPassthroughImpl(ContextGroup* group); | 72 explicit GLES2DecoderPassthroughImpl(ContextGroup* group); |
| 73 ~GLES2DecoderPassthroughImpl() override; | 73 ~GLES2DecoderPassthroughImpl() override; |
| 74 | 74 |
| 75 Error DoCommands(unsigned int num_commands, | 75 Error DoCommands(unsigned int num_commands, |
| 76 const volatile void* buffer, | 76 const volatile void* buffer, |
| 77 int num_entries, | 77 int num_entries, |
| 78 int* entries_processed) override; | 78 int* entries_processed) override; |
| 79 | 79 |
| 80 const char* GetCommandName(unsigned int command_id) const override; | 80 const char* GetCommandName(unsigned int command_id) const override; |
| 81 | 81 |
| 82 base::WeakPtr<GLES2Decoder> AsWeakPtr() override; |
| 83 |
| 82 bool Initialize(const scoped_refptr<gl::GLSurface>& surface, | 84 bool Initialize(const scoped_refptr<gl::GLSurface>& surface, |
| 83 const scoped_refptr<gl::GLContext>& context, | 85 const scoped_refptr<gl::GLContext>& context, |
| 84 bool offscreen, | 86 bool offscreen, |
| 85 const DisallowedFeatures& disallowed_features, | 87 const DisallowedFeatures& disallowed_features, |
| 86 const ContextCreationAttribHelper& attrib_helper) override; | 88 const ContextCreationAttribHelper& attrib_helper) override; |
| 87 | 89 |
| 88 // Destroys the graphics context. | 90 // Destroys the graphics context. |
| 89 void Destroy(bool have_context) override; | 91 void Destroy(bool have_context) override; |
| 90 | 92 |
| 91 // Set the surface associated with the default FBO. | 93 // Set the surface associated with the default FBO. |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 int32_t shm_id = 0; | 393 int32_t shm_id = 0; |
| 392 uint32_t shm_offset = 0; | 394 uint32_t shm_offset = 0; |
| 393 }; | 395 }; |
| 394 std::unordered_map<GLenum, ActiveQuery> active_queries_; | 396 std::unordered_map<GLenum, ActiveQuery> active_queries_; |
| 395 | 397 |
| 396 std::set<GLenum> errors_; | 398 std::set<GLenum> errors_; |
| 397 | 399 |
| 398 // Cache of scratch memory | 400 // Cache of scratch memory |
| 399 std::vector<uint8_t> scratch_memory_; | 401 std::vector<uint8_t> scratch_memory_; |
| 400 | 402 |
| 403 base::WeakPtrFactory<GLES2DecoderPassthroughImpl> weak_ptr_factory_; |
| 404 |
| 401 // Include the prototypes of all the doer functions from a separate header to | 405 // Include the prototypes of all the doer functions from a separate header to |
| 402 // keep this file clean. | 406 // keep this file clean. |
| 403 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp
es.h" | 407 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp
es.h" |
| 404 }; | 408 }; |
| 405 | 409 |
| 406 } // namespace gles2 | 410 } // namespace gles2 |
| 407 } // namespace gpu | 411 } // namespace gpu |
| 408 | 412 |
| 409 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ | 413 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ |
| OLD | NEW |