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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 5317007: Add flow control between renderer and GPU processes, and, on Mac OS X,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 virtual void AcceleratedSurfaceSetIOSurface( 218 virtual void AcceleratedSurfaceSetIOSurface(
219 gfx::PluginWindowHandle window, 219 gfx::PluginWindowHandle window,
220 int32 width, 220 int32 width,
221 int32 height, 221 int32 height,
222 uint64 io_surface_identifier) = 0; 222 uint64 io_surface_identifier) = 0;
223 virtual void AcceleratedSurfaceSetTransportDIB( 223 virtual void AcceleratedSurfaceSetTransportDIB(
224 gfx::PluginWindowHandle window, 224 gfx::PluginWindowHandle window,
225 int32 width, 225 int32 width,
226 int32 height, 226 int32 height,
227 TransportDIB::Handle transport_dib) = 0; 227 TransportDIB::Handle transport_dib) = 0;
228 // |window| and |surface_id| indicate which accelerated surface's
229 // buffers swapped. |renderer_id|, |route_id| and
230 // |swap_buffers_count| are used to formulate a reply to the GPU
231 // process to prevent it from getting too far ahead. They may all be
232 // zero, in which case no flow control is enforced; this case is
233 // currently used for accelerated plugins.
228 virtual void AcceleratedSurfaceBuffersSwapped( 234 virtual void AcceleratedSurfaceBuffersSwapped(
229 gfx::PluginWindowHandle window, uint64 surface_id) = 0; 235 gfx::PluginWindowHandle window,
236 uint64 surface_id,
237 int renderer_id,
238 int32 route_id,
239 uint64 swap_buffers_count) = 0;
230 virtual void GpuRenderingStateDidChange() = 0; 240 virtual void GpuRenderingStateDidChange() = 0;
231 #endif 241 #endif
232 242
233 #if defined(TOOLKIT_USES_GTK) 243 #if defined(TOOLKIT_USES_GTK)
234 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; 244 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0;
235 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; 245 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0;
236 #endif 246 #endif
237 247
238 // Toggles visual muting of the render view area. This is on when a 248 // Toggles visual muting of the render view area. This is on when a
239 // constrained window is showing. 249 // constrained window is showing.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 292
283 // The current reserved area in view coordinates where contents should not be 293 // The current reserved area in view coordinates where contents should not be
284 // rendered to draw the resize corner, sidebar mini tabs etc. 294 // rendered to draw the resize corner, sidebar mini tabs etc.
285 gfx::Rect reserved_rect_; 295 gfx::Rect reserved_rect_;
286 296
287 private: 297 private:
288 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 298 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
289 }; 299 };
290 300
291 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 301 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698