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

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

Issue 6557006: Moved creation of GPU transfer buffers into the browser process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
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>
11 11
12 #include "base/hash_tables.h" 12 #include "base/hash_tables.h"
13 #include "base/process_util.h"
13 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
14 #include "chrome/common/gpu_info.h" 15 #include "chrome/common/gpu_info.h"
15 #include "chrome/common/message_router.h" 16 #include "chrome/common/message_router.h"
16 #include "ipc/ipc_channel.h" 17 #include "ipc/ipc_channel.h"
17 #include "ipc/ipc_channel_handle.h" 18 #include "ipc/ipc_channel_handle.h"
18 #include "ipc/ipc_message.h" 19 #include "ipc/ipc_message.h"
19 #include "ipc/ipc_sync_channel.h" 20 #include "ipc/ipc_sync_channel.h"
20 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
21 #include "ui/gfx/size.h" 22 #include "ui/gfx/size.h"
22 23
(...skipping 14 matching lines...) Expand all
37 // An error caused the host to become disconnected. Recreate channel to 38 // An error caused the host to become disconnected. Recreate channel to
38 // reestablish connection. 39 // reestablish connection.
39 kLost 40 kLost
40 }; 41 };
41 42
42 // Called on the render thread 43 // Called on the render thread
43 GpuChannelHost(); 44 GpuChannelHost();
44 ~GpuChannelHost(); 45 ~GpuChannelHost();
45 46
46 // Connect to GPU process channel. 47 // Connect to GPU process channel.
47 void Connect(const IPC::ChannelHandle& channel_handle); 48 void Connect(const IPC::ChannelHandle& channel_handle,
49 base::ProcessHandle gpu_renderer_process);
48 50
49 State state() const { return state_; } 51 State state() const { return state_; }
50 52
51 // Change state to kLost. 53 // Change state to kLost.
52 void SetStateLost(); 54 void SetStateLost();
53 55
54 // The GPU stats reported by the GPU process. 56 // The GPU stats reported by the GPU process.
55 void set_gpu_info(const GPUInfo& gpu_info); 57 void set_gpu_info(const GPUInfo& gpu_info);
56 const GPUInfo& gpu_info() const; 58 const GPUInfo& gpu_info() const;
57 59
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 ProxyMap proxies_; 103 ProxyMap proxies_;
102 104
103 // This is a MessageFilter to intercept IPC messages and distribute them 105 // This is a MessageFilter to intercept IPC messages and distribute them
104 // to the corresponding GpuVideoDecoderHost. 106 // to the corresponding GpuVideoDecoderHost.
105 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; 107 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_;
106 108
107 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 109 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
108 }; 110 };
109 111
110 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_ 112 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698