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

Side by Side Diff: content/common/gpu/gpu_channel_manager.h

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.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 (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 CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 int GenerateRouteID(); 86 int GenerateRouteID();
87 void AddRoute(int32 routing_id, IPC::Listener* listener); 87 void AddRoute(int32 routing_id, IPC::Listener* listener);
88 void RemoveRoute(int32 routing_id); 88 void RemoveRoute(int32 routing_id);
89 89
90 gpu::gles2::ProgramCache* program_cache(); 90 gpu::gles2::ProgramCache* program_cache();
91 91
92 GpuMemoryManager* gpu_memory_manager() { return &gpu_memory_manager_; } 92 GpuMemoryManager* gpu_memory_manager() { return &gpu_memory_manager_; }
93 93
94 GpuChannel* LookupChannel(int32 client_id); 94 GpuChannel* LookupChannel(int32 client_id);
95 95
96 SyncPointManager* sync_point_manager() { return sync_point_manager_; } 96 SyncPointManager* sync_point_manager() { return sync_point_manager_.get(); }
97 97
98 gfx::GLSurface* GetDefaultOffscreenSurface(); 98 gfx::GLSurface* GetDefaultOffscreenSurface();
99 99
100 private: 100 private:
101 struct ImageOperation { 101 struct ImageOperation {
102 ImageOperation(int32 sync_point, base::Closure callback); 102 ImageOperation(int32 sync_point, base::Closure callback);
103 ~ImageOperation(); 103 ~ImageOperation();
104 104
105 int32 sync_point; 105 int32 sync_point;
106 base::Closure callback; 106 base::Closure callback;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; 147 scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
148 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; 148 scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
149 ImageOperationQueue image_operations_; 149 ImageOperationQueue image_operations_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 151 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
152 }; 152 };
153 153
154 } // namespace content 154 } // namespace content
155 155
156 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 156 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698