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

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

Issue 914183002: Remove window.chrome.gpuBenchmarking.beginWindowSnapshotPNG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 9 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 int64 GetLatencyComponentId() const; 473 int64 GetLatencyComponentId() const;
474 474
475 base::TimeDelta GetEstimatedBrowserCompositeTime() const; 475 base::TimeDelta GetEstimatedBrowserCompositeTime() const;
476 476
477 static void CompositorFrameDrawn( 477 static void CompositorFrameDrawn(
478 const std::vector<ui::LatencyInfo>& latency_info); 478 const std::vector<ui::LatencyInfo>& latency_info);
479 479
480 // Don't check whether we expected a resize ack during layout tests. 480 // Don't check whether we expected a resize ack during layout tests.
481 static void DisableResizeAckCheckForTesting(); 481 static void DisableResizeAckCheckForTesting();
482 482
483 void WindowSnapshotAsyncCallback(
484 int routing_id,
485 int snapshot_id,
486 gfx::Size snapshot_size,
487 scoped_refptr<base::RefCountedBytes> png_data);
488
489 InputRouter* input_router() { return input_router_.get(); } 483 InputRouter* input_router() { return input_router_.get(); }
490 484
491 // Get the BrowserAccessibilityManager for the root of the frame tree, 485 // Get the BrowserAccessibilityManager for the root of the frame tree,
492 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); 486 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager();
493 487
494 // Get the BrowserAccessibilityManager for the root of the frame tree, 488 // Get the BrowserAccessibilityManager for the root of the frame tree,
495 // or create it if it doesn't already exist. 489 // or create it if it doesn't already exist.
496 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager(); 490 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager();
497 491
498 void RejectMouseLockOrUnlockIfNecessary(); 492 void RejectMouseLockOrUnlockIfNecessary();
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 void OnGestureEventAck(const GestureEventWithLatencyInfo& event, 676 void OnGestureEventAck(const GestureEventWithLatencyInfo& event,
683 InputEventAckState ack_result) override; 677 InputEventAckState ack_result) override;
684 void OnUnexpectedEventAck(UnexpectedEventAckType type) override; 678 void OnUnexpectedEventAck(UnexpectedEventAckType type) override;
685 679
686 void OnSyntheticGestureCompleted(SyntheticGesture::Result result); 680 void OnSyntheticGestureCompleted(SyntheticGesture::Result result);
687 681
688 // Called when there is a new auto resize (using a post to avoid a stack 682 // Called when there is a new auto resize (using a post to avoid a stack
689 // which may get in recursive loops). 683 // which may get in recursive loops).
690 void DelayedAutoResized(); 684 void DelayedAutoResized();
691 685
692 void WindowOldSnapshotReachedScreen(int snapshot_id);
693
694 void WindowSnapshotReachedScreen(int snapshot_id); 686 void WindowSnapshotReachedScreen(int snapshot_id);
695 687
696 void OnSnapshotDataReceived(int snapshot_id, 688 void OnSnapshotDataReceived(int snapshot_id,
697 const unsigned char* png, 689 const unsigned char* png,
698 size_t size); 690 size_t size);
699 691
700 void OnSnapshotDataReceivedAsync( 692 void OnSnapshotDataReceivedAsync(
701 int snapshot_id, 693 int snapshot_id,
702 scoped_refptr<base::RefCountedBytes> png_data); 694 scoped_refptr<base::RefCountedBytes> png_data);
703 695
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 bool is_focused_; 847 bool is_focused_;
856 848
857 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 849 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
858 850
859 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
860 }; 852 };
861 853
862 } // namespace content 854 } // namespace content
863 855
864 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 856 #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