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

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

Issue 8591006: Reland 110355 - Use shared D3D9 texture to transport the compositor's backing buffer to the brows... (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 <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // transitions from the unscheduled to the scheduled state. When this occurs 80 // transitions from the unscheduled to the scheduled state. When this occurs
81 // deferred IPC messaged are handled. 81 // deferred IPC messaged are handled.
82 void OnScheduled(); 82 void OnScheduled();
83 83
84 void CreateViewCommandBuffer( 84 void CreateViewCommandBuffer(
85 gfx::PluginWindowHandle window, 85 gfx::PluginWindowHandle window,
86 int32 render_view_id, 86 int32 render_view_id,
87 const GPUCreateCommandBufferConfig& init_params, 87 const GPUCreateCommandBufferConfig& init_params,
88 int32* route_id); 88 int32* route_id);
89 89
90 void ViewResized(int32 command_buffer_route_id);
91
92 gfx::GLShareGroup* share_group() const { return share_group_.get(); } 90 gfx::GLShareGroup* share_group() const { return share_group_.get(); }
93 91
94 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); 92 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id);
95 93
96 void LoseAllContexts(); 94 void LoseAllContexts();
97 95
98 // Destroy channel and all contained contexts. 96 // Destroy channel and all contained contexts.
99 void DestroySoon(); 97 void DestroySoon();
100 98
101 // Get the TransportTexture by ID. 99 // Get the TransportTexture by ID.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 bool handle_messages_scheduled_; 182 bool handle_messages_scheduled_;
185 bool processed_get_state_fast_; 183 bool processed_get_state_fast_;
186 int32 num_contexts_preferring_discrete_gpu_; 184 int32 num_contexts_preferring_discrete_gpu_;
187 185
188 ScopedRunnableMethodFactory<GpuChannel> task_factory_; 186 ScopedRunnableMethodFactory<GpuChannel> task_factory_;
189 187
190 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 188 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
191 }; 189 };
192 190
193 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 191 #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