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

Side by Side Diff: content/port/browser/render_widget_host_view_port.h

Issue 10411086: Makes the browser send pixels to the GPU process where it should (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/content_browser.gypi ('k') | content/public/browser/render_widget_host_view.h » ('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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 base::Callback<void(bool)> callback) = 0; 155 base::Callback<void(bool)> callback) = 0;
156 156
157 // Called when accelerated compositing state changes. 157 // Called when accelerated compositing state changes.
158 virtual void OnAcceleratedCompositingStateChange() = 0; 158 virtual void OnAcceleratedCompositingStateChange() = 0;
159 // |params.window| and |params.surface_id| indicate which accelerated 159 // |params.window| and |params.surface_id| indicate which accelerated
160 // surface's buffers swapped. |params.renderer_id| and |params.route_id| 160 // surface's buffers swapped. |params.renderer_id| and |params.route_id|
161 // are used to formulate a reply to the GPU process to prevent it from getting 161 // are used to formulate a reply to the GPU process to prevent it from getting
162 // too far ahead. They may all be zero, in which case no flow control is 162 // too far ahead. They may all be zero, in which case no flow control is
163 // enforced; this case is currently used for accelerated plugins. 163 // enforced; this case is currently used for accelerated plugins.
164 virtual void AcceleratedSurfaceBuffersSwapped( 164 virtual void AcceleratedSurfaceBuffersSwapped(
165 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 165 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel,
166 int gpu_host_id) = 0; 166 int gpu_host_id) = 0;
167 // Similar to above, except |params.(x|y|width|height)| define the region 167 // Similar to above, except |params.(x|y|width|height)| define the region
168 // of the surface that changed. 168 // of the surface that changed.
169 virtual void AcceleratedSurfacePostSubBuffer( 169 virtual void AcceleratedSurfacePostSubBuffer(
170 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 170 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel,
171 int gpu_host_id) = 0; 171 int gpu_host_id) = 0;
172 172
173 // Release the accelerated surface temporarily. It will be recreated on the 173 // Release the accelerated surface temporarily. It will be recreated on the
174 // next swap buffers or post sub buffer. 174 // next swap buffers or post sub buffer.
175 virtual void AcceleratedSurfaceSuspend() = 0; 175 virtual void AcceleratedSurfaceSuspend() = 0;
176 176
177 // Return true if the view has an accelerated surface that contains the last 177 // Return true if the view has an accelerated surface that contains the last
178 // presented frame for the view. If |desired_size| is non-empty, true is 178 // presented frame for the view. If |desired_size| is non-empty, true is
179 // returned only if the accelerated surface size matches. 179 // returned only if the accelerated surface size matches.
180 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; 180 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 uint64 io_surface_identifier) = 0; 214 uint64 io_surface_identifier) = 0;
215 virtual void AcceleratedSurfaceSetTransportDIB( 215 virtual void AcceleratedSurfaceSetTransportDIB(
216 gfx::PluginWindowHandle window, 216 gfx::PluginWindowHandle window,
217 int32 width, 217 int32 width,
218 int32 height, 218 int32 height,
219 TransportDIB::Handle transport_dib) = 0; 219 TransportDIB::Handle transport_dib) = 0;
220 #endif 220 #endif
221 221
222 #if defined(USE_AURA) 222 #if defined(USE_AURA)
223 virtual void AcceleratedSurfaceNew( 223 virtual void AcceleratedSurfaceNew(
224 int32 width, 224 int32 width_in_pixel,
225 int32 height, 225 int32 height_in_pixel,
226 uint64* surface_id, 226 uint64* surface_id,
227 TransportDIB::Handle* surface_handle) = 0; 227 TransportDIB::Handle* surface_handle) = 0;
228 virtual void AcceleratedSurfaceRelease(uint64 surface_id) = 0; 228 virtual void AcceleratedSurfaceRelease(uint64 surface_id) = 0;
229 #endif 229 #endif
230 230
231 #if defined(TOOLKIT_GTK) 231 #if defined(TOOLKIT_GTK)
232 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; 232 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0;
233 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; 233 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0;
234 #endif // defined(TOOLKIT_GTK) 234 #endif // defined(TOOLKIT_GTK)
235 235
(...skipping 30 matching lines...) Expand all
266 virtual BrowserAccessibilityManager* 266 virtual BrowserAccessibilityManager*
267 GetBrowserAccessibilityManager() const = 0; 267 GetBrowserAccessibilityManager() const = 0;
268 virtual void OnAccessibilityNotifications( 268 virtual void OnAccessibilityNotifications(
269 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 269 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
270 } 270 }
271 }; 271 };
272 272
273 } // namespace content 273 } // namespace content
274 274
275 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 275 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/render_widget_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698