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

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

Issue 833283003: Reland "Add new latency_info for tracking browser composite time." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename component Created 5 years, 11 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 return max_size_for_auto_resize_; 448 return max_size_for_auto_resize_;
449 } 449 }
450 450
451 void FrameSwapped(const ui::LatencyInfo& latency_info); 451 void FrameSwapped(const ui::LatencyInfo& latency_info);
452 void DidReceiveRendererFrame(); 452 void DidReceiveRendererFrame();
453 453
454 // Returns the ID that uniquely describes this component to the latency 454 // Returns the ID that uniquely describes this component to the latency
455 // subsystem. 455 // subsystem.
456 int64 GetLatencyComponentId() const; 456 int64 GetLatencyComponentId() const;
457 457
458 base::TimeDelta GetEstimatedBrowserCompositeTime() const;
459
458 static void CompositorFrameDrawn( 460 static void CompositorFrameDrawn(
459 const std::vector<ui::LatencyInfo>& latency_info); 461 const std::vector<ui::LatencyInfo>& latency_info);
460 462
461 // Don't check whether we expected a resize ack during layout tests. 463 // Don't check whether we expected a resize ack during layout tests.
462 static void DisableResizeAckCheckForTesting(); 464 static void DisableResizeAckCheckForTesting();
463 465
464 void WindowSnapshotAsyncCallback( 466 void WindowSnapshotAsyncCallback(
465 int routing_id, 467 int routing_id,
466 int snapshot_id, 468 int snapshot_id,
467 gfx::Size snapshot_size, 469 gfx::Size snapshot_size,
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 PendingSnapshotMap pending_browser_snapshots_; 826 PendingSnapshotMap pending_browser_snapshots_;
825 827
826 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
827 829
828 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
829 }; 831 };
830 832
831 } // namespace content 833 } // namespace content
832 834
833 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698