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