| OLD | NEW |
| 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 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 TransportDIB::Handle transport_dib); | 261 TransportDIB::Handle transport_dib); |
| 262 virtual void AcceleratedSurfaceBuffersSwapped( | 262 virtual void AcceleratedSurfaceBuffersSwapped( |
| 263 gfx::PluginWindowHandle window, | 263 gfx::PluginWindowHandle window, |
| 264 uint64 surface_id, | 264 uint64 surface_id, |
| 265 int renderer_id, | 265 int renderer_id, |
| 266 int32 route_id, | 266 int32 route_id, |
| 267 int gpu_host_id, | 267 int gpu_host_id, |
| 268 uint64 swap_buffers_count); | 268 uint64 swap_buffers_count); |
| 269 virtual void GpuRenderingStateDidChange(); | 269 virtual void GpuRenderingStateDidChange(); |
| 270 | 270 |
| 271 virtual gfx::PluginWindowHandle AcquireCompositingSurface(); | 271 virtual gfx::PluginWindowHandle GetCompositingSurface(); |
| 272 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface); | |
| 273 | 272 |
| 274 void DrawAcceleratedSurfaceInstance( | 273 void DrawAcceleratedSurfaceInstance( |
| 275 CGLContextObj context, | 274 CGLContextObj context, |
| 276 gfx::PluginWindowHandle plugin_handle, | 275 gfx::PluginWindowHandle plugin_handle, |
| 277 NSSize size); | 276 NSSize size); |
| 278 // Forces the textures associated with any accelerated plugin instances | 277 // Forces the textures associated with any accelerated plugin instances |
| 279 // to be reloaded. | 278 // to be reloaded. |
| 280 void ForceTextureReload(); | 279 void ForceTextureReload(); |
| 281 | 280 |
| 282 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); | 281 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; | 380 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; |
| 382 | 381 |
| 383 // selected text on the renderer. | 382 // selected text on the renderer. |
| 384 std::string selected_text_; | 383 std::string selected_text_; |
| 385 | 384 |
| 386 // When rendering transitions from gpu to software, the gpu widget can't be | 385 // When rendering transitions from gpu to software, the gpu widget can't be |
| 387 // hidden until the software backing store has been updated. This variable is | 386 // hidden until the software backing store has been updated. This variable is |
| 388 // set when the gpu widget needs to be hidden once a paint is completed. | 387 // set when the gpu widget needs to be hidden once a paint is completed. |
| 389 bool needs_gpu_visibility_update_after_repaint_; | 388 bool needs_gpu_visibility_update_after_repaint_; |
| 390 | 389 |
| 390 gfx::PluginWindowHandle compositing_surface_; |
| 391 |
| 391 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 392 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 392 }; | 393 }; |
| 393 | 394 |
| 394 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 395 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |