Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Side by Side Diff: chrome/gpu/gpu_channel.h

Issue 3067026: Initial port of accelerated compositor to Mac OS X 10.6. Reused... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/gpu/gpu_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698