| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 // Identifies a particular renderer belonging to the same renderer process. | 80 // Identifies a particular renderer belonging to the same renderer process. |
| 81 int32 render_view_id() const { return render_view_id_; } | 81 int32 render_view_id() const { return render_view_id_; } |
| 82 | 82 |
| 83 // Identifies the various GpuCommandBufferStubs in the GPU process belonging | 83 // Identifies the various GpuCommandBufferStubs in the GPU process belonging |
| 84 // to the same renderer process. | 84 // to the same renderer process. |
| 85 int32 route_id() const { return route_id_; } | 85 int32 route_id() const { return route_id_; } |
| 86 | 86 |
| 87 gfx::GpuPreference gpu_preference() { return gpu_preference_; } | 87 gfx::GpuPreference gpu_preference() { return gpu_preference_; } |
| 88 | 88 |
| 89 // Sends a message to the console. |
| 90 void SendConsoleMessage(int32 id, const std::string& message); |
| 91 |
| 89 private: | 92 private: |
| 90 void Destroy(); | 93 void Destroy(); |
| 91 | 94 |
| 92 // Cleans up and sends reply if OnInitialize failed. | 95 // Cleans up and sends reply if OnInitialize failed. |
| 93 void OnInitializeFailed(IPC::Message* reply_message); | 96 void OnInitializeFailed(IPC::Message* reply_message); |
| 94 | 97 |
| 95 // Message handlers: | 98 // Message handlers: |
| 96 void OnInitialize(IPC::Message* reply_message); | 99 void OnInitialize(IPC::Message* reply_message); |
| 97 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); | 100 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); |
| 98 void OnSetParent(int32 parent_route_id, | 101 void OnSetParent(int32 parent_route_id, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // 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 |
| 165 // decoder_route_id. | 168 // decoder_route_id. |
| 166 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 169 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
| 167 | 170 |
| 168 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 171 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 169 }; | 172 }; |
| 170 | 173 |
| 171 #endif // defined(ENABLE_GPU) | 174 #endif // defined(ENABLE_GPU) |
| 172 | 175 |
| 173 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 176 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |