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

Side by Side Diff: components/view_manager/gles2/gpu_state.h

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove forward decl/includes Created 5 years, 5 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
« no previous file with comments | « components/view_manager/gles2/gpu_impl.cc ('k') | components/view_manager/gles2/gpu_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_VIEW_MANAGER_GLES2_GPU_STATE_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_GPU_STATE_H_
6 #define COMPONENTS_VIEW_MANAGER_GLES2_GPU_STATE_H_ 6 #define COMPONENTS_VIEW_MANAGER_GLES2_GPU_STATE_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/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
11 #include "gpu/command_buffer/service/mailbox_manager_impl.h" 12 #include "gpu/command_buffer/service/mailbox_manager_impl.h"
12 #include "gpu/command_buffer/service/sync_point_manager.h" 13 #include "gpu/command_buffer/service/sync_point_manager.h"
13 #include "ui/gl/gl_share_group.h" 14 #include "ui/gl/gl_share_group.h"
14 15
15 namespace gles2 { 16 namespace gles2 {
16 17
17 // We need to share these across all CommandBuffer instances so that contexts 18 // We need to share these across all CommandBuffer instances so that contexts
18 // they create can share resources with each other via mailboxes. 19 // they create can share resources with each other via mailboxes.
(...skipping 16 matching lines...) Expand all
35 } 36 }
36 gpu::SyncPointManager* sync_point_manager() const { 37 gpu::SyncPointManager* sync_point_manager() const {
37 return sync_point_manager_.get(); 38 return sync_point_manager_.get();
38 } 39 }
39 40
40 private: 41 private:
41 friend class base::RefCounted<GpuState>; 42 friend class base::RefCounted<GpuState>;
42 ~GpuState(); 43 ~GpuState();
43 44
44 base::Thread control_thread_; 45 base::Thread control_thread_;
45 scoped_refptr<gpu::SyncPointManager> sync_point_manager_; 46 scoped_ptr<gpu::SyncPointManager> sync_point_manager_;
46 scoped_refptr<gfx::GLShareGroup> share_group_; 47 scoped_refptr<gfx::GLShareGroup> share_group_;
47 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; 48 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
48 }; 49 };
49 50
50 } // namespace gles2 51 } // namespace gles2
51 52
52 #endif // COMPONENTS_VIEW_MANAGER_GLES2_GPU_STATE_H_ 53 #endif // COMPONENTS_VIEW_MANAGER_GLES2_GPU_STATE_H_
OLDNEW
« no previous file with comments | « components/view_manager/gles2/gpu_impl.cc ('k') | components/view_manager/gles2/gpu_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698