| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |