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

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

Issue 10978004: Upstream the code to pass StreamTextureManagerAndroid from GpuChannel to GLES2DecoderImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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_command_buffer_stub.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_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 #include <vector> 10 #include <vector>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 gpu::RefCountedCounter* MessagesPendingCount() { 119 gpu::RefCountedCounter* MessagesPendingCount() {
120 return unprocessed_messages_.get(); 120 return unprocessed_messages_.get();
121 } 121 }
122 122
123 // If preempt_by_counter->count is non-zero, any stub on this channel 123 // If preempt_by_counter->count is non-zero, any stub on this channel
124 // should stop issuing GL commands. Setting this to NULL stops deferral. 124 // should stop issuing GL commands. Setting this to NULL stops deferral.
125 void SetPreemptByCounter( 125 void SetPreemptByCounter(
126 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter); 126 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter);
127 127
128 #if defined(OS_ANDROID)
129 content::StreamTextureManagerAndroid* stream_texture_manager() {
130 return stream_texture_manager_.get();
131 }
132 #endif
133
128 protected: 134 protected:
129 virtual ~GpuChannel(); 135 virtual ~GpuChannel();
130 136
131 private: 137 private:
132 friend class base::RefCountedThreadSafe<GpuChannel>; 138 friend class base::RefCountedThreadSafe<GpuChannel>;
133 139
134 void OnDestroy(); 140 void OnDestroy();
135 141
136 bool OnControlMessageReceived(const IPC::Message& msg); 142 bool OnControlMessageReceived(const IPC::Message& msg);
137 143
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 #if defined(OS_ANDROID) 214 #if defined(OS_ANDROID)
209 scoped_ptr<content::StreamTextureManagerAndroid> stream_texture_manager_; 215 scoped_ptr<content::StreamTextureManagerAndroid> stream_texture_manager_;
210 #endif 216 #endif
211 217
212 base::WeakPtrFactory<GpuChannel> weak_factory_; 218 base::WeakPtrFactory<GpuChannel> weak_factory_;
213 219
214 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 220 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
215 }; 221 };
216 222
217 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 223 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698