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

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

Issue 123563002: Remove gpu side LatencyInfo merging (Closed) Base URL: http://git.chromium.org/chromium/src.git@gpu-per-event-latency-6-small
Patch Set: fix mac_rel compiler error. Move kMaxLatencyInfoNumber to .cc file Created 6 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
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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 bool should_auto_resize() { return should_auto_resize_; } 535 bool should_auto_resize() { return should_auto_resize_; }
536 536
537 void ComputeTouchLatency(const ui::LatencyInfo& latency_info); 537 void ComputeTouchLatency(const ui::LatencyInfo& latency_info);
538 void FrameSwapped(const ui::LatencyInfo& latency_info); 538 void FrameSwapped(const ui::LatencyInfo& latency_info);
539 void DidReceiveRendererFrame(); 539 void DidReceiveRendererFrame();
540 540
541 // Returns the ID that uniquely describes this component to the latency 541 // Returns the ID that uniquely describes this component to the latency
542 // subsystem. 542 // subsystem.
543 int64 GetLatencyComponentId(); 543 int64 GetLatencyComponentId();
544 544
545 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); 545 static void CompositorFrameDrawn(
546 const std::vector<ui::LatencyInfo>& latency_info);
546 547
547 // Don't check whether we expected a resize ack during layout tests. 548 // Don't check whether we expected a resize ack during layout tests.
548 static void DisableResizeAckCheckForTesting(); 549 static void DisableResizeAckCheckForTesting();
549 550
550 protected: 551 protected:
551 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; 552 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
552 553
553 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT 554 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT
554 // component if it is not already in |original|. And if |original| is 555 // component if it is not already in |original|. And if |original| is
555 // not NULL, it is also merged into the resulting LatencyInfo. 556 // not NULL, it is also merged into the resulting LatencyInfo.
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 int64 last_input_number_; 923 int64 last_input_number_;
923 924
924 BrowserRenderingStats rendering_stats_; 925 BrowserRenderingStats rendering_stats_;
925 926
926 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 927 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
927 }; 928 };
928 929
929 } // namespace content 930 } // namespace content
930 931
931 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 932 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698