| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 gfx::GpuPreference gpu_preference, | 51 gfx::GpuPreference gpu_preference, |
| 52 int32 route_id, | 52 int32 route_id, |
| 53 int32 renderer_id, | 53 int32 renderer_id, |
| 54 int32 render_view_id, | 54 int32 render_view_id, |
| 55 GpuWatchdog* watchdog, | 55 GpuWatchdog* watchdog, |
| 56 bool software); | 56 bool software); |
| 57 | 57 |
| 58 virtual ~GpuCommandBufferStub(); | 58 virtual ~GpuCommandBufferStub(); |
| 59 | 59 |
| 60 // IPC::Channel::Listener implementation: | 60 // IPC::Channel::Listener implementation: |
| 61 virtual bool OnMessageReceived(const IPC::Message& message); | 61 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 62 | 62 |
| 63 // IPC::Message::Sender implementation: | 63 // IPC::Message::Sender implementation: |
| 64 virtual bool Send(IPC::Message* msg); | 64 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 65 | 65 |
| 66 // Whether this command buffer can currently handle IPC messages. | 66 // Whether this command buffer can currently handle IPC messages. |
| 67 bool IsScheduled(); | 67 bool IsScheduled(); |
| 68 | 68 |
| 69 gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); } | 69 gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); } |
| 70 gpu::GpuScheduler* scheduler() const { return scheduler_.get(); } | 70 gpu::GpuScheduler* scheduler() const { return scheduler_.get(); } |
| 71 | 71 |
| 72 // Identifies the renderer process. | 72 // Identifies the renderer process. |
| 73 int32 renderer_id() const { return renderer_id_; } | 73 int32 renderer_id() const { return renderer_id_; } |
| 74 | 74 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 175 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
| 176 | 176 |
| 177 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; | 177 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; |
| 178 | 178 |
| 179 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 179 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 #endif // defined(ENABLE_GPU) | 182 #endif // defined(ENABLE_GPU) |
| 183 | 183 |
| 184 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 184 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |