OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_MAC_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CHROME_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 #import <QuartzCore/CALayer.h> | 10 #import <QuartzCore/CALayer.h> |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 int32 width, | 255 int32 width, |
256 int32 height, | 256 int32 height, |
257 TransportDIB::Handle transport_dib); | 257 TransportDIB::Handle transport_dib); |
258 virtual void AcceleratedSurfaceBuffersSwapped( | 258 virtual void AcceleratedSurfaceBuffersSwapped( |
259 gfx::PluginWindowHandle window, | 259 gfx::PluginWindowHandle window, |
260 uint64 surface_id, | 260 uint64 surface_id, |
261 int32 renderer_id, | 261 int32 renderer_id, |
262 int32 route_id, | 262 int32 route_id, |
263 uint64 swap_buffers_count); | 263 uint64 swap_buffers_count); |
264 virtual void GpuRenderingStateDidChange(); | 264 virtual void GpuRenderingStateDidChange(); |
| 265 |
| 266 virtual gfx::PluginWindowHandle AcquireCompositingSurface(); |
| 267 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface); |
| 268 |
265 void DrawAcceleratedSurfaceInstance( | 269 void DrawAcceleratedSurfaceInstance( |
266 CGLContextObj context, | 270 CGLContextObj context, |
267 gfx::PluginWindowHandle plugin_handle, | 271 gfx::PluginWindowHandle plugin_handle, |
268 NSSize size); | 272 NSSize size); |
269 // Forces the textures associated with any accelerated plugin instances | 273 // Forces the textures associated with any accelerated plugin instances |
270 // to be reloaded. | 274 // to be reloaded. |
271 void ForceTextureReload(); | 275 void ForceTextureReload(); |
272 | 276 |
273 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); | 277 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); |
274 | 278 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 376 |
373 // When rendering transitions from gpu to software, the gpu widget can't be | 377 // When rendering transitions from gpu to software, the gpu widget can't be |
374 // hidden until the software backing store has been updated. This variable is | 378 // hidden until the software backing store has been updated. This variable is |
375 // set when the gpu widget needs to be hidden once a paint is completed. | 379 // set when the gpu widget needs to be hidden once a paint is completed. |
376 bool needs_gpu_visibility_update_after_repaint_; | 380 bool needs_gpu_visibility_update_after_repaint_; |
377 | 381 |
378 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 382 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
379 }; | 383 }; |
380 | 384 |
381 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 385 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |