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

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

Issue 12040049: gpu: Implement idle async pixel transfers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DCHECKs to ensure idle async uploads are only used with GL_TEXTURE_2D target Created 7 years, 9 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.h ('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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Remove the channel for a particular renderer. 70 // Remove the channel for a particular renderer.
71 void RemoveChannel(int client_id); 71 void RemoveChannel(int client_id);
72 72
73 // Listener overrides. 73 // Listener overrides.
74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
75 75
76 // Sender overrides. 76 // Sender overrides.
77 virtual bool Send(IPC::Message* msg) OVERRIDE; 77 virtual bool Send(IPC::Message* msg) OVERRIDE;
78 78
79 bool HandleMessagesScheduled();
80 uint64 MessagesProcessed();
81
79 void LoseAllContexts(); 82 void LoseAllContexts();
80 83
81 base::WeakPtrFactory<GpuChannelManager> weak_factory_; 84 base::WeakPtrFactory<GpuChannelManager> weak_factory_;
82 85
83 int GenerateRouteID(); 86 int GenerateRouteID();
84 void AddRoute(int32 routing_id, IPC::Listener* listener); 87 void AddRoute(int32 routing_id, IPC::Listener* listener);
85 void RemoveRoute(int32 routing_id); 88 void RemoveRoute(int32 routing_id);
86 89
87 gpu::gles2::ProgramCache* program_cache(); 90 gpu::gles2::ProgramCache* program_cache();
88 91
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; 147 scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
145 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; 148 scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
146 ImageOperationQueue image_operations_; 149 ImageOperationQueue image_operations_;
147 150
148 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 151 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
149 }; 152 };
150 153
151 } // namespace content 154 } // namespace content
152 155
153 #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.h ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698