| 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_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 media::VideoCodecProfile profile, | 70 media::VideoCodecProfile profile, |
| 71 media::VideoDecodeAccelerator::Client* client); | 71 media::VideoDecodeAccelerator::Client* client); |
| 72 | 72 |
| 73 // IPC::Listener implementation: | 73 // IPC::Listener implementation: |
| 74 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 74 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 75 virtual void OnChannelError() OVERRIDE; | 75 virtual void OnChannelError() OVERRIDE; |
| 76 | 76 |
| 77 // CommandBufferProxy implementation: | 77 // CommandBufferProxy implementation: |
| 78 virtual int GetRouteID() const OVERRIDE; | 78 virtual int GetRouteID() const OVERRIDE; |
| 79 virtual bool Echo(const base::Closure& callback) OVERRIDE; | 79 virtual bool Echo(const base::Closure& callback) OVERRIDE; |
| 80 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, | 80 virtual bool ProduceFrontBuffer(const gpu::Mailbox& mailbox) OVERRIDE; |
| 81 uint32 parent_texture_id) OVERRIDE; | |
| 82 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; | 81 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; |
| 83 | 82 |
| 84 // CommandBuffer implementation: | 83 // CommandBuffer implementation: |
| 85 virtual bool Initialize() OVERRIDE; | 84 virtual bool Initialize() OVERRIDE; |
| 86 virtual State GetState() OVERRIDE; | 85 virtual State GetState() OVERRIDE; |
| 87 virtual State GetLastState() OVERRIDE; | 86 virtual State GetLastState() OVERRIDE; |
| 88 virtual int32 GetLastToken() OVERRIDE; | 87 virtual int32 GetLastToken() OVERRIDE; |
| 89 virtual void Flush(int32 put_offset) OVERRIDE; | 88 virtual void Flush(int32 put_offset) OVERRIDE; |
| 90 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE; | 89 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE; |
| 91 virtual void SetGetBuffer(int32 shm_id) OVERRIDE; | 90 virtual void SetGetBuffer(int32 shm_id) OVERRIDE; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // Tasks to be invoked in SignalSyncPoint responses. | 197 // Tasks to be invoked in SignalSyncPoint responses. |
| 199 uint32 next_signal_id_; | 198 uint32 next_signal_id_; |
| 200 SignalTaskMap signal_tasks_; | 199 SignalTaskMap signal_tasks_; |
| 201 | 200 |
| 202 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 201 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
| 203 }; | 202 }; |
| 204 | 203 |
| 205 } // namespace content | 204 } // namespace content |
| 206 | 205 |
| 207 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 206 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| OLD | NEW |