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

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

Issue 9303009: Add IPC allowing GPU process to tell browser process to temporarily drop a front buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
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_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 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 gfx::PluginWindowHandle window, 257 gfx::PluginWindowHandle window,
258 int32 width, 258 int32 width,
259 int32 height, 259 int32 height,
260 TransportDIB::Handle transport_dib) OVERRIDE; 260 TransportDIB::Handle transport_dib) OVERRIDE;
261 virtual void AcceleratedSurfaceBuffersSwapped( 261 virtual void AcceleratedSurfaceBuffersSwapped(
262 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 262 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
263 int gpu_host_id) OVERRIDE; 263 int gpu_host_id) OVERRIDE;
264 virtual void AcceleratedSurfacePostSubBuffer( 264 virtual void AcceleratedSurfacePostSubBuffer(
265 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 265 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
266 int gpu_host_id) OVERRIDE; 266 int gpu_host_id) OVERRIDE;
267 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
267 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; 268 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
268 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; 269 virtual gfx::Rect GetRootWindowBounds() OVERRIDE;
269 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; 270 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE;
270 271
271 // Returns |true| if a context menu is currently being shown. 272 // Returns |true| if a context menu is currently being shown.
272 bool is_showing_context_menu() const { return is_showing_context_menu_; } 273 bool is_showing_context_menu() const { return is_showing_context_menu_; }
273 274
274 void DrawAcceleratedSurfaceInstance( 275 void DrawAcceleratedSurfaceInstance(
275 CGLContextObj context, 276 CGLContextObj context,
276 gfx::PluginWindowHandle plugin_handle, 277 gfx::PluginWindowHandle plugin_handle,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // hidden until the software backing store has been updated. This variable is 398 // hidden until the software backing store has been updated. This variable is
398 // set when the gpu widget needs to be hidden once a paint is completed. 399 // set when the gpu widget needs to be hidden once a paint is completed.
399 bool needs_gpu_visibility_update_after_repaint_; 400 bool needs_gpu_visibility_update_after_repaint_;
400 401
401 gfx::PluginWindowHandle compositing_surface_; 402 gfx::PluginWindowHandle compositing_surface_;
402 403
403 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
404 }; 405 };
405 406
406 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 407 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698