| 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 MailboxManager* mailbox_manager, | 47 MailboxManager* mailbox_manager, |
| 48 ImageManager* image_manager, | 48 ImageManager* image_manager, |
| 49 MemoryTracker* memory_tracker, | 49 MemoryTracker* memory_tracker, |
| 50 StreamTextureManager* stream_texture_manager, | 50 StreamTextureManager* stream_texture_manager, |
| 51 bool bind_generates_resource); | 51 bool bind_generates_resource); |
| 52 | 52 |
| 53 // This should only be called by GLES2Decoder. This must be paired with a | 53 // This should only be called by GLES2Decoder. This must be paired with a |
| 54 // call to destroy if it succeeds. | 54 // call to destroy if it succeeds. |
| 55 bool Initialize( | 55 bool Initialize( |
| 56 GLES2Decoder* decoder, | 56 GLES2Decoder* decoder, |
| 57 const DisallowedFeatures& disallowed_features, | 57 const DisallowedFeatures& disallowed_features); |
| 58 const char* allowed_features); | |
| 59 | 58 |
| 60 // Destroys all the resources when called for the last context in the group. | 59 // Destroys all the resources when called for the last context in the group. |
| 61 // It should only be called by GLES2Decoder. | 60 // It should only be called by GLES2Decoder. |
| 62 void Destroy(GLES2Decoder* decoder, bool have_context); | 61 void Destroy(GLES2Decoder* decoder, bool have_context); |
| 63 | 62 |
| 64 MailboxManager* mailbox_manager() const { | 63 MailboxManager* mailbox_manager() const { |
| 65 return mailbox_manager_.get(); | 64 return mailbox_manager_.get(); |
| 66 } | 65 } |
| 67 | 66 |
| 68 ImageManager* image_manager() const { | 67 ImageManager* image_manager() const { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 225 |
| 227 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 226 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
| 228 }; | 227 }; |
| 229 | 228 |
| 230 } // namespace gles2 | 229 } // namespace gles2 |
| 231 } // namespace gpu | 230 } // namespace gpu |
| 232 | 231 |
| 233 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 232 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
| 234 | 233 |
| 235 | 234 |
| OLD | NEW |