| 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 #include <vector> | 10 #include <vector> |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |