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

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

Issue 2788893004: Renaming gpu swap buffer callbacks and the screenshot latency component. (Closed)
Patch Set: Updating android compositor Created 3 years, 8 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
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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 // The minimum size of this renderer when auto-resize is enabled. 487 // The minimum size of this renderer when auto-resize is enabled.
488 const gfx::Size& min_size_for_auto_resize() const { 488 const gfx::Size& min_size_for_auto_resize() const {
489 return min_size_for_auto_resize_; 489 return min_size_for_auto_resize_;
490 } 490 }
491 491
492 // The maximum size of this renderer when auto-resize is enabled. 492 // The maximum size of this renderer when auto-resize is enabled.
493 const gfx::Size& max_size_for_auto_resize() const { 493 const gfx::Size& max_size_for_auto_resize() const {
494 return max_size_for_auto_resize_; 494 return max_size_for_auto_resize_;
495 } 495 }
496 496
497 void FrameSwapped(const ui::LatencyInfo& latency_info);
498 void DidReceiveRendererFrame(); 497 void DidReceiveRendererFrame();
499 498
500 // Returns the ID that uniquely describes this component to the latency 499 // Returns the ID that uniquely describes this component to the latency
501 // subsystem. 500 // subsystem.
502 int64_t GetLatencyComponentId() const; 501 int64_t GetLatencyComponentId() const;
503 502
504 static void CompositorFrameDrawn( 503 static void OnGpuSwapBuffersCompleted(
505 const std::vector<ui::LatencyInfo>& latency_info); 504 const std::vector<ui::LatencyInfo>& latency_info);
506 505
507 // Don't check whether we expected a resize ack during layout tests. 506 // Don't check whether we expected a resize ack during layout tests.
508 static void DisableResizeAckCheckForTesting(); 507 static void DisableResizeAckCheckForTesting();
509 508
510 InputRouter* input_router() { return input_router_.get(); } 509 InputRouter* input_router() { return input_router_.get(); }
511 510
512 // Get the BrowserAccessibilityManager for the root of the frame tree, 511 // Get the BrowserAccessibilityManager for the root of the frame tree,
513 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); 512 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager();
514 513
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 618
620 // Called by |new_content_rendering_timeout_| if a renderer has loaded new 619 // Called by |new_content_rendering_timeout_| if a renderer has loaded new
621 // content but failed to produce a compositor frame in a defined time. 620 // content but failed to produce a compositor frame in a defined time.
622 void ClearDisplayedGraphics(); 621 void ClearDisplayedGraphics();
623 622
624 // Called if we know the renderer is responsive. When we currently think the 623 // Called if we know the renderer is responsive. When we currently think the
625 // renderer is unresponsive, this will clear that state and call 624 // renderer is unresponsive, this will clear that state and call
626 // NotifyRendererResponsive. 625 // NotifyRendererResponsive.
627 void RendererIsResponsive(); 626 void RendererIsResponsive();
628 627
628 void OnGpuSwapBuffersCompletedInternal(const ui::LatencyInfo& latency_info);
629
629 // IPC message handlers 630 // IPC message handlers
630 void OnRenderProcessGone(int status, int error_code); 631 void OnRenderProcessGone(int status, int error_code);
631 void OnClose(); 632 void OnClose();
632 void OnUpdateScreenRectsAck(); 633 void OnUpdateScreenRectsAck();
633 void OnRequestMove(const gfx::Rect& pos); 634 void OnRequestMove(const gfx::Rect& pos);
634 void OnSetTooltipText(const base::string16& tooltip_text, 635 void OnSetTooltipText(const base::string16& tooltip_text,
635 blink::WebTextDirection text_direction_hint); 636 blink::WebTextDirection text_direction_hint);
636 bool OnSwapCompositorFrame(const IPC::Message& message); 637 bool OnSwapCompositorFrame(const IPC::Message& message);
637 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack); 638 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack);
638 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 639 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 uint32_t last_compositor_frame_sink_id_ = 0; 950 uint32_t last_compositor_frame_sink_id_ = 0;
950 951
951 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 952 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
952 953
953 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 954 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
954 }; 955 };
955 956
956 } // namespace content 957 } // namespace content
957 958
958 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 959 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698