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

Side by Side Diff: chrome/renderer/gpu_channel_host.h

Issue 6343006: Route IPC through browser when creating a viewable command buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 9 years, 10 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/renderer/ggl/ggl.cc ('k') | chrome/renderer/gpu_channel_host.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_RENDERER_GPU_CHANNEL_HOST_H_ 5 #ifndef CHROME_RENDERER_GPU_CHANNEL_HOST_H_
6 #define CHROME_RENDERER_GPU_CHANNEL_HOST_H_ 6 #define CHROME_RENDERER_GPU_CHANNEL_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // IPC::Channel::Listener implementation: 58 // IPC::Channel::Listener implementation:
59 virtual bool OnMessageReceived(const IPC::Message& msg); 59 virtual bool OnMessageReceived(const IPC::Message& msg);
60 virtual void OnChannelConnected(int32 peer_pid); 60 virtual void OnChannelConnected(int32 peer_pid);
61 virtual void OnChannelError(); 61 virtual void OnChannelError();
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);
65 65
66 // Create and connect to a command buffer in the GPU process. 66 // Create and connect to a command buffer in the GPU process.
67 CommandBufferProxy* CreateViewCommandBuffer( 67 CommandBufferProxy* CreateViewCommandBuffer(
68 gfx::NativeViewId view,
69 int render_view_id, 68 int render_view_id,
70 const std::string& allowed_extensions, 69 const std::string& allowed_extensions,
71 const std::vector<int32>& attribs); 70 const std::vector<int32>& attribs);
72 71
73 // Create and connect to a command buffer in the GPU process. 72 // Create and connect to a command buffer in the GPU process.
74 CommandBufferProxy* CreateOffscreenCommandBuffer( 73 CommandBufferProxy* CreateOffscreenCommandBuffer(
75 CommandBufferProxy* parent, 74 CommandBufferProxy* parent,
76 const gfx::Size& size, 75 const gfx::Size& size,
77 const std::string& allowed_extensions, 76 const std::string& allowed_extensions,
78 const std::vector<int32>& attribs, 77 const std::vector<int32>& attribs,
(...skipping 23 matching lines...) Expand all
102 ProxyMap proxies_; 101 ProxyMap proxies_;
103 102
104 // This is a MessageFilter to intercept IPC messages and distribute them 103 // This is a MessageFilter to intercept IPC messages and distribute them
105 // to the corresponding GpuVideoDecoderHost. 104 // to the corresponding GpuVideoDecoderHost.
106 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; 105 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_;
107 106
108 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 107 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
109 }; 108 };
110 109
111 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_ 110 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/ggl/ggl.cc ('k') | chrome/renderer/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698