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

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 8060045: Use shared D3D9 texture to transport the compositor's backing buffer to the browser... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_GPU_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // transitions from the unscheduled to the scheduled state. When this occurs 86 // transitions from the unscheduled to the scheduled state. When this occurs
87 // deferred IPC messaged are handled. 87 // deferred IPC messaged are handled.
88 void OnScheduled(); 88 void OnScheduled();
89 89
90 void CreateViewCommandBuffer( 90 void CreateViewCommandBuffer(
91 gfx::PluginWindowHandle window, 91 gfx::PluginWindowHandle window,
92 int32 render_view_id, 92 int32 render_view_id,
93 const GPUCreateCommandBufferConfig& init_params, 93 const GPUCreateCommandBufferConfig& init_params,
94 int32* route_id); 94 int32* route_id);
95 95
96 void ViewResized(int32 command_buffer_route_id);
97
98 gfx::GLShareGroup* share_group() const { return share_group_.get(); } 96 gfx::GLShareGroup* share_group() const { return share_group_.get(); }
99 97
100 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); 98 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id);
101 99
102 void LoseAllContexts(); 100 void LoseAllContexts();
103 101
104 // Destroy channel and all contained contexts. 102 // Destroy channel and all contained contexts.
105 void DestroySoon(); 103 void DestroySoon();
106 104
107 // Get the TransportTexture by ID. 105 // Get the TransportTexture by ID.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 bool software_; 187 bool software_;
190 bool handle_messages_scheduled_; 188 bool handle_messages_scheduled_;
191 int32 num_contexts_preferring_discrete_gpu_; 189 int32 num_contexts_preferring_discrete_gpu_;
192 190
193 ScopedRunnableMethodFactory<GpuChannel> task_factory_; 191 ScopedRunnableMethodFactory<GpuChannel> task_factory_;
194 192
195 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 193 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
196 }; 194 };
197 195
198 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 196 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698