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_TESTS_GL_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/gfx/size.h" | 10 #include "ui/gfx/size.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 GLManager(); | 60 GLManager(); |
61 ~GLManager(); | 61 ~GLManager(); |
62 | 62 |
63 void Initialize(const Options& options); | 63 void Initialize(const Options& options); |
64 void Destroy(); | 64 void Destroy(); |
65 | 65 |
66 void MakeCurrent(); | 66 void MakeCurrent(); |
67 | 67 |
68 void SetSurface(gfx::GLSurface* surface); | 68 void SetSurface(gfx::GLSurface* surface); |
69 | 69 |
| 70 gles2::GLES2Decoder* decoder() const { |
| 71 return decoder_.get(); |
| 72 } |
| 73 |
70 gles2::MailboxManager* mailbox_manager() const { | 74 gles2::MailboxManager* mailbox_manager() const { |
71 return mailbox_manager_.get(); | 75 return mailbox_manager_.get(); |
72 } | 76 } |
73 | 77 |
74 gfx::GLShareGroup* share_group() const { | 78 gfx::GLShareGroup* share_group() const { |
75 return share_group_.get(); | 79 return share_group_.get(); |
76 } | 80 } |
77 | 81 |
78 gles2::GLES2Implementation* gles2_implementation() const { | 82 gles2::GLES2Implementation* gles2_implementation() const { |
79 return gles2_implementation_.get(); | 83 return gles2_implementation_.get(); |
(...skipping 23 matching lines...) Expand all Loading... |
103 // Used on Android to virtualize GL for all contexts. | 107 // Used on Android to virtualize GL for all contexts. |
104 static int use_count_; | 108 static int use_count_; |
105 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 109 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
106 static scoped_refptr<gfx::GLSurface>* base_surface_; | 110 static scoped_refptr<gfx::GLSurface>* base_surface_; |
107 static scoped_refptr<gfx::GLContext>* base_context_; | 111 static scoped_refptr<gfx::GLContext>* base_context_; |
108 }; | 112 }; |
109 | 113 |
110 } // namespace gpu | 114 } // namespace gpu |
111 | 115 |
112 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 116 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
OLD | NEW |