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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 8513013: Plumb the partial swap though image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with a few compile fixes (tested Win, Mac, Linux, and Aura) Created 9 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) 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(__OBJC__) 9 #if defined(__OBJC__)
10 10
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 int32 height, 253 int32 height,
254 uint64 io_surface_identifier) OVERRIDE; 254 uint64 io_surface_identifier) OVERRIDE;
255 virtual void AcceleratedSurfaceSetTransportDIB( 255 virtual void AcceleratedSurfaceSetTransportDIB(
256 gfx::PluginWindowHandle window, 256 gfx::PluginWindowHandle window,
257 int32 width, 257 int32 width,
258 int32 height, 258 int32 height,
259 TransportDIB::Handle transport_dib) OVERRIDE; 259 TransportDIB::Handle transport_dib) OVERRIDE;
260 virtual void AcceleratedSurfaceBuffersSwapped( 260 virtual void AcceleratedSurfaceBuffersSwapped(
261 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 261 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
262 int gpu_host_id) OVERRIDE; 262 int gpu_host_id) OVERRIDE;
263 virtual void AcceleratedSurfacePostSubBuffer(
264 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
265 int gpu_host_id) OVERRIDE;
263 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; 266 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
264 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; 267 virtual gfx::Rect GetRootWindowBounds() OVERRIDE;
265 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; 268 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE;
266 269
267 // Returns |true| if a context menu is currently being shown. 270 // Returns |true| if a context menu is currently being shown.
268 bool is_showing_context_menu() const { return is_showing_context_menu_; } 271 bool is_showing_context_menu() const { return is_showing_context_menu_; }
269 272
270 void DrawAcceleratedSurfaceInstance( 273 void DrawAcceleratedSurfaceInstance(
271 CGLContextObj context, 274 CGLContextObj context,
272 gfx::PluginWindowHandle plugin_handle, 275 gfx::PluginWindowHandle plugin_handle,
(...skipping 25 matching lines...) Expand all
298 const std::string& selected_text() const { return selected_text_; } 301 const std::string& selected_text() const { return selected_text_; }
299 302
300 void UpdateRootGpuViewVisibility(bool show_gpu_widget); 303 void UpdateRootGpuViewVisibility(bool show_gpu_widget);
301 304
302 // When rendering transitions from gpu to software, the gpu widget can't be 305 // When rendering transitions from gpu to software, the gpu widget can't be
303 // hidden until the software backing store has been updated. This method 306 // hidden until the software backing store has been updated. This method
304 // checks if the GPU view needs to be hidden and hides it if necessary. It 307 // checks if the GPU view needs to be hidden and hides it if necessary. It
305 // should be called after the software backing store has been painted to. 308 // should be called after the software backing store has been painted to.
306 void HandleDelayedGpuViewHiding(); 309 void HandleDelayedGpuViewHiding();
307 310
308 // This is called from the display link thread, and provides the GPU
309 // process a notion of how quickly the browser is able to keep up with it.
310 void AcknowledgeSwapBuffers(int renderer_id,
311 int32 route_id,
312 int gpu_host_id);
313
314 // These member variables should be private, but the associated ObjC class 311 // These member variables should be private, but the associated ObjC class
315 // needs access to them and can't be made a friend. 312 // needs access to them and can't be made a friend.
316 313
317 // The associated Model. Can be NULL if Destroy() is called when 314 // The associated Model. Can be NULL if Destroy() is called when
318 // someone (other than superview) has retained |cocoa_view_|. 315 // someone (other than superview) has retained |cocoa_view_|.
319 RenderWidgetHost* render_widget_host_; 316 RenderWidgetHost* render_widget_host_;
320 317
321 // This is true when we are currently painting and thus should handle extra 318 // This is true when we are currently painting and thus should handle extra
322 // paint requests by expanding the invalid rect rather than actually painting. 319 // paint requests by expanding the invalid rect rather than actually painting.
323 bool about_to_validate_and_paint_; 320 bool about_to_validate_and_paint_;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 414
418 class RenderWidgetHostView; 415 class RenderWidgetHostView;
419 class RenderWidgetHost; 416 class RenderWidgetHost;
420 417
421 namespace render_widget_host_view_mac { 418 namespace render_widget_host_view_mac {
422 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( 419 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView(
423 RenderWidgetHost* widget); 420 RenderWidgetHost* widget);
424 } 421 }
425 422
426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698