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

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

Issue 12717013: Add reference-counting for mailbox textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add optional 'pool' reference while textures are in mailbox Created 7 years, 8 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
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 scoped_refptr<gpu::PreemptionFlag> preemption_flag); 146 scoped_refptr<gpu::PreemptionFlag> preemption_flag);
147 147
148 #if defined(OS_ANDROID) 148 #if defined(OS_ANDROID)
149 StreamTextureManagerAndroid* stream_texture_manager() { 149 StreamTextureManagerAndroid* stream_texture_manager() {
150 return stream_texture_manager_.get(); 150 return stream_texture_manager_.get();
151 } 151 }
152 #endif 152 #endif
153 153
154 void CacheShader(const std::string& key, const std::string& shader); 154 void CacheShader(const std::string& key, const std::string& shader);
155 155
156 void OnDestroySurface(int route_id, int surface_id);
157
156 protected: 158 protected:
157 virtual ~GpuChannel(); 159 virtual ~GpuChannel();
158 160
159 private: 161 private:
160 friend class base::RefCountedThreadSafe<GpuChannel>; 162 friend class base::RefCountedThreadSafe<GpuChannel>;
161 friend class GpuChannelMessageFilter; 163 friend class GpuChannelMessageFilter;
162 164
163 void OnDestroy(); 165 void OnDestroy();
164 166
165 bool OnControlMessageReceived(const IPC::Message& msg); 167 bool OnControlMessageReceived(const IPC::Message& msg);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 252 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
251 253
252 size_t num_stubs_descheduled_; 254 size_t num_stubs_descheduled_;
253 255
254 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 256 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
255 }; 257 };
256 258
257 } // namespace content 259 } // namespace content
258 260
259 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 261 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698