Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: gpu/command_buffer/tests/gl_manager.h

Issue 15798014: Replace context parenting by sharing through mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_manager_unittest.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698