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

Side by Side Diff: content/renderer/gpu/gpu_channel_host.h

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more tests Created 8 years, 11 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 | « content/public/browser/render_process_host.h ('k') | content/renderer/gpu/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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_GPU_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_
6 #define CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_RENDERER_GPU_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void set_gpu_info(const content::GPUInfo& gpu_info); 77 void set_gpu_info(const content::GPUInfo& gpu_info);
78 const content::GPUInfo& gpu_info() const; 78 const content::GPUInfo& gpu_info() const;
79 79
80 void OnChannelError(); 80 void OnChannelError();
81 81
82 // IPC::Message::Sender implementation: 82 // IPC::Message::Sender implementation:
83 virtual bool Send(IPC::Message* msg) OVERRIDE; 83 virtual bool Send(IPC::Message* msg) OVERRIDE;
84 84
85 // Create and connect to a command buffer in the GPU process. 85 // Create and connect to a command buffer in the GPU process.
86 CommandBufferProxy* CreateViewCommandBuffer( 86 CommandBufferProxy* CreateViewCommandBuffer(
87 int render_view_id, 87 int32 surface_id,
88 CommandBufferProxy* share_group, 88 CommandBufferProxy* share_group,
89 const std::string& allowed_extensions, 89 const std::string& allowed_extensions,
90 const std::vector<int32>& attribs, 90 const std::vector<int32>& attribs,
91 const GURL& active_url, 91 const GURL& active_url,
92 gfx::GpuPreference gpu_preference); 92 gfx::GpuPreference gpu_preference);
93 93
94 // Create and connect to a command buffer in the GPU process. 94 // Create and connect to a command buffer in the GPU process.
95 CommandBufferProxy* CreateOffscreenCommandBuffer( 95 CommandBufferProxy* CreateOffscreenCommandBuffer(
96 const gfx::Size& size, 96 const gfx::Size& size,
97 CommandBufferProxy* share_group, 97 CommandBufferProxy* share_group,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // for calls from contexts that may live on the compositor or main thread. 167 // for calls from contexts that may live on the compositor or main thread.
168 mutable base::Lock context_lock_; 168 mutable base::Lock context_lock_;
169 169
170 // A filter for sending messages from thread other than the main thread. 170 // A filter for sending messages from thread other than the main thread.
171 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; 171 scoped_refptr<IPC::SyncMessageFilter> sync_filter_;
172 172
173 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 173 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
174 }; 174 };
175 175
176 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ 176 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/renderer/gpu/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698