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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // descheduled states. When any stub is descheduled, we stop preempting | 120 // descheduled states. When any stub is descheduled, we stop preempting |
121 // other channels. | 121 // other channels. |
122 void StubSchedulingChanged(bool scheduled); | 122 void StubSchedulingChanged(bool scheduled); |
123 | 123 |
124 CreateCommandBufferResult CreateViewCommandBuffer( | 124 CreateCommandBufferResult CreateViewCommandBuffer( |
125 const gfx::GLSurfaceHandle& window, | 125 const gfx::GLSurfaceHandle& window, |
126 int32 surface_id, | 126 int32 surface_id, |
127 const GPUCreateCommandBufferConfig& init_params, | 127 const GPUCreateCommandBufferConfig& init_params, |
128 int32 route_id); | 128 int32 route_id); |
129 | 129 |
| 130 bool CreateStreamTexture(int32 image_id, int32 route_id, int32 stream_id); |
| 131 |
130 gfx::GLShareGroup* share_group() const { return share_group_.get(); } | 132 gfx::GLShareGroup* share_group() const { return share_group_.get(); } |
131 | 133 |
132 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); | 134 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); |
133 | 135 |
134 void LoseAllContexts(); | 136 void LoseAllContexts(); |
135 void MarkAllContextsLost(); | 137 void MarkAllContextsLost(); |
136 | 138 |
137 // Called to add a listener for a particular message routing ID. | 139 // Called to add a listener for a particular message routing ID. |
138 // Returns true if succeeded. | 140 // Returns true if succeeded. |
139 bool AddRoute(int32 route_id, IPC::Listener* listener); | 141 bool AddRoute(int32 route_id, IPC::Listener* listener); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // that any WeakPtrs to Controller are invalidated before its members | 261 // that any WeakPtrs to Controller are invalidated before its members |
260 // variable's destructors are executed, rendering them invalid. | 262 // variable's destructors are executed, rendering them invalid. |
261 base::WeakPtrFactory<GpuChannel> weak_factory_; | 263 base::WeakPtrFactory<GpuChannel> weak_factory_; |
262 | 264 |
263 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 265 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
264 }; | 266 }; |
265 | 267 |
266 } // namespace content | 268 } // namespace content |
267 | 269 |
268 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 270 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |