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

Side by Side Diff: content/common/gpu/gpu_channel.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 | « no previous file | content/common/gpu/gpu_channel_manager.h » ('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_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 // Generate a route ID guaranteed to be unique for this channel. 131 // Generate a route ID guaranteed to be unique for this channel.
132 int GenerateRouteID(); 132 int GenerateRouteID();
133 133
134 // Called to add/remove a listener for a particular message routing ID. 134 // Called to add/remove a listener for a particular message routing ID.
135 void AddRoute(int32 route_id, IPC::Listener* listener); 135 void AddRoute(int32 route_id, IPC::Listener* listener);
136 void RemoveRoute(int32 route_id); 136 void RemoveRoute(int32 route_id);
137 137
138 gpu::PreemptionFlag* GetPreemptionFlag(); 138 gpu::PreemptionFlag* GetPreemptionFlag();
139 139
140 bool handle_messages_scheduled() const { return handle_messages_scheduled_; }
141 uint64 messages_processed() const { return messages_processed_; }
142
140 // If |preemption_flag->IsSet()|, any stub on this channel 143 // If |preemption_flag->IsSet()|, any stub on this channel
141 // should stop issuing GL commands. Setting this to NULL stops deferral. 144 // should stop issuing GL commands. Setting this to NULL stops deferral.
142 void SetPreemptByFlag( 145 void SetPreemptByFlag(
143 scoped_refptr<gpu::PreemptionFlag> preemption_flag); 146 scoped_refptr<gpu::PreemptionFlag> preemption_flag);
144 147
145 #if defined(OS_ANDROID) 148 #if defined(OS_ANDROID)
146 StreamTextureManagerAndroid* stream_texture_manager() { 149 StreamTextureManagerAndroid* stream_texture_manager() {
147 return stream_texture_manager_.get(); 150 return stream_texture_manager_.get();
148 } 151 }
149 #endif 152 #endif
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 250 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
248 251
249 size_t num_stubs_descheduled_; 252 size_t num_stubs_descheduled_;
250 253
251 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 254 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
252 }; 255 };
253 256
254 } // namespace content 257 } // namespace content
255 258
256 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 259 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698