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

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

Issue 274163004: Remove browser-side tracking of accelerated compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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_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
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 uint32 renderer_frame_number_; 423 uint32 renderer_frame_number_;
426 424
427 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 425 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
428 426
429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 427 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
430 }; 428 };
431 429
432 } // namespace content 430 } // namespace content
433 431
434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698