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_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
10 | 10 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 int32 id_request, | 114 int32 id_request, |
115 IPC::Message* reply_message); | 115 IPC::Message* reply_message); |
116 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); | 116 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); |
117 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 117 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
118 | 118 |
119 void OnCreateVideoDecoder( | 119 void OnCreateVideoDecoder( |
120 media::VideoDecodeAccelerator::Profile profile, | 120 media::VideoDecodeAccelerator::Profile profile, |
121 IPC::Message* reply_message); | 121 IPC::Message* reply_message); |
122 void OnDestroyVideoDecoder(int32 decoder_route_id); | 122 void OnDestroyVideoDecoder(int32 decoder_route_id); |
123 | 123 |
124 void OnSetSurfaceVisible(bool visible); | 124 void OnSetResourceUsage(gfx::GLSurface::ResourceUsage resourceUsage); |
125 | 125 |
126 void OnCommandProcessed(); | 126 void OnCommandProcessed(); |
127 void OnParseError(); | 127 void OnParseError(); |
128 | 128 |
129 void ReportState(); | 129 void ReportState(); |
130 | 130 |
131 // The lifetime of objects of this class is managed by a GpuChannel. The | 131 // The lifetime of objects of this class is managed by a GpuChannel. The |
132 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they | 132 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they |
133 // are destroyed. So a raw pointer is safe. | 133 // are destroyed. So a raw pointer is safe. |
134 GpuChannel* channel_; | 134 GpuChannel* channel_; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Zero or more video decoders owned by this stub, keyed by their | 167 // Zero or more video decoders owned by this stub, keyed by their |
168 // decoder_route_id. | 168 // decoder_route_id. |
169 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 169 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
170 | 170 |
171 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 171 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
172 }; | 172 }; |
173 | 173 |
174 #endif // defined(ENABLE_GPU) | 174 #endif // defined(ENABLE_GPU) |
175 | 175 |
176 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 176 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |