| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_CHANNEL_H_ | 5 #ifndef CHROME_GPU_GPU_CHANNEL_H_ |
| 6 #define CHROME_GPU_GPU_CHANNEL_H_ | 6 #define CHROME_GPU_GPU_CHANNEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // IPC::Message::Sender implementation: | 57 // IPC::Message::Sender implementation: |
| 58 virtual bool Send(IPC::Message* msg); | 58 virtual bool Send(IPC::Message* msg); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 void OnControlMessageReceived(const IPC::Message& msg); | 61 void OnControlMessageReceived(const IPC::Message& msg); |
| 62 | 62 |
| 63 int GenerateRouteID(); | 63 int GenerateRouteID(); |
| 64 | 64 |
| 65 // Message handlers. | 65 // Message handlers. |
| 66 void OnCreateViewCommandBuffer(gfx::NativeViewId view, | 66 void OnCreateViewCommandBuffer(gfx::NativeViewId view, |
| 67 int32 render_view_id, |
| 67 int32* route_id); | 68 int32* route_id); |
| 68 void OnCreateOffscreenCommandBuffer(int32 parent_route_id, | 69 void OnCreateOffscreenCommandBuffer(int32 parent_route_id, |
| 69 const gfx::Size& size, | 70 const gfx::Size& size, |
| 70 uint32 parent_texture_id, | 71 uint32 parent_texture_id, |
| 71 int32* route_id); | 72 int32* route_id); |
| 72 void OnDestroyCommandBuffer(int32 route_id); | 73 void OnDestroyCommandBuffer(int32 route_id); |
| 73 | 74 |
| 74 scoped_ptr<IPC::SyncChannel> channel_; | 75 scoped_ptr<IPC::SyncChannel> channel_; |
| 75 | 76 |
| 76 // Handle to the renderer process who is on the other side of the channel. | 77 // Handle to the renderer process who is on the other side of the channel. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 92 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap; | 93 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap; |
| 93 StubMap stubs_; | 94 StubMap stubs_; |
| 94 #endif | 95 #endif |
| 95 | 96 |
| 96 bool log_messages_; // True if we should log sent and received messages. | 97 bool log_messages_; // True if we should log sent and received messages. |
| 97 | 98 |
| 98 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 99 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 #endif // CHROME_GPU_GPU_CHANNEL_H_ | 102 #endif // CHROME_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |