| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 int32 id_request, | 110 int32 id_request, |
| 111 IPC::Message* reply_message); | 111 IPC::Message* reply_message); |
| 112 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); | 112 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); |
| 113 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 113 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 114 | 114 |
| 115 void OnCreateVideoDecoder( | 115 void OnCreateVideoDecoder( |
| 116 media::VideoDecodeAccelerator::Profile profile, | 116 media::VideoDecodeAccelerator::Profile profile, |
| 117 IPC::Message* reply_message); | 117 IPC::Message* reply_message); |
| 118 void OnDestroyVideoDecoder(int32 decoder_route_id); | 118 void OnDestroyVideoDecoder(int32 decoder_route_id); |
| 119 | 119 |
| 120 void OnSetSurfaceVisible(bool visible); | 120 void OnSetResourceUsage(gfx::GLSurface::ResourceUsage resourceUsage); |
| 121 | 121 |
| 122 void OnCommandProcessed(); | 122 void OnCommandProcessed(); |
| 123 void OnParseError(); | 123 void OnParseError(); |
| 124 | 124 |
| 125 void ReportState(); | 125 void ReportState(); |
| 126 | 126 |
| 127 // The lifetime of objects of this class is managed by a GpuChannel. The | 127 // The lifetime of objects of this class is managed by a GpuChannel. The |
| 128 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they | 128 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they |
| 129 // are destroyed. So a raw pointer is safe. | 129 // are destroyed. So a raw pointer is safe. |
| 130 GpuChannel* channel_; | 130 GpuChannel* channel_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 161 // Zero or more video decoders owned by this stub, keyed by their | 161 // Zero or more video decoders owned by this stub, keyed by their |
| 162 // decoder_route_id. | 162 // decoder_route_id. |
| 163 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 163 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 165 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 #endif // defined(ENABLE_GPU) | 168 #endif // defined(ENABLE_GPU) |
| 169 | 169 |
| 170 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 170 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |