OLD | NEW |
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_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
10 #endif | 10 #endif |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 const base::Callback<void(bool)>& callback) = 0; | 269 const base::Callback<void(bool)>& callback) = 0; |
270 | 270 |
271 // Returns true if CopyFromCompositingSurfaceToVideoFrame() is likely to | 271 // Returns true if CopyFromCompositingSurfaceToVideoFrame() is likely to |
272 // succeed. | 272 // succeed. |
273 // | 273 // |
274 // TODO(nick): When VideoFrame copies are broadly implemented, this method | 274 // TODO(nick): When VideoFrame copies are broadly implemented, this method |
275 // should be renamed to HasCompositingSurface(), or unified with | 275 // should be renamed to HasCompositingSurface(), or unified with |
276 // IsSurfaceAvailableForCopy() and HasAcceleratedSurface(). | 276 // IsSurfaceAvailableForCopy() and HasAcceleratedSurface(). |
277 virtual bool CanCopyToVideoFrame() const = 0; | 277 virtual bool CanCopyToVideoFrame() const = 0; |
278 | 278 |
279 // Called when accelerated compositing state changes. | |
280 virtual void OnAcceleratedCompositingStateChange() = 0; | |
281 // Called when an accelerated compositing surface is initialized. | 279 // Called when an accelerated compositing surface is initialized. |
282 virtual void AcceleratedSurfaceInitialized(int host_id, int route_id) = 0; | 280 virtual void AcceleratedSurfaceInitialized(int host_id, int route_id) = 0; |
283 // |params.window| and |params.surface_id| indicate which accelerated | 281 // |params.window| and |params.surface_id| indicate which accelerated |
284 // surface's buffers swapped. |params.renderer_id| and |params.route_id| | 282 // surface's buffers swapped. |params.renderer_id| and |params.route_id| |
285 // are used to formulate a reply to the GPU process to prevent it from getting | 283 // are used to formulate a reply to the GPU process to prevent it from getting |
286 // too far ahead. They may all be zero, in which case no flow control is | 284 // too far ahead. They may all be zero, in which case no flow control is |
287 // enforced; this case is currently used for accelerated plugins. | 285 // enforced; this case is currently used for accelerated plugins. |
288 virtual void AcceleratedSurfaceBuffersSwapped( | 286 virtual void AcceleratedSurfaceBuffersSwapped( |
289 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, | 287 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, |
290 int gpu_host_id) = 0; | 288 int gpu_host_id) = 0; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 uint32 renderer_frame_number_; | 422 uint32 renderer_frame_number_; |
425 | 423 |
426 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 424 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
427 | 425 |
428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 426 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
429 }; | 427 }; |
430 | 428 |
431 } // namespace content | 429 } // namespace content |
432 | 430 |
433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 431 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |