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

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

Issue 127103002: Make WindowReachedScreen support async readback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac /o\ 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 | Annotate | Revision Log
« 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(const ui::LatencyInfo& latency_info);
546 546
547 // Don't check whether we expected a resize ack during layout tests. 547 // Don't check whether we expected a resize ack during layout tests.
548 static void DisableResizeAckCheckForTesting(); 548 static void DisableResizeAckCheckForTesting();
549 549
550 void WindowSnapshotAsyncCallback(
551 int routing_id,
552 int snapshot_id,
553 gfx::Size snapshot_size,
554 scoped_refptr<base::RefCountedBytes> png_data);
555
550 protected: 556 protected:
551 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; 557 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
552 558
553 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT 559 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT
554 // component if it is not already in |original|. And if |original| is 560 // component if it is not already in |original|. And if |original| is
555 // not NULL, it is also merged into the resulting LatencyInfo. 561 // not NULL, it is also merged into the resulting LatencyInfo.
556 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( 562 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist(
557 const ui::LatencyInfo* original, blink::WebInputEvent::Type type); 563 const ui::LatencyInfo* original, blink::WebInputEvent::Type type);
558 564
559 // Called when we receive a notification indicating that the renderer 565 // Called when we receive a notification indicating that the renderer
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 int64 last_input_number_; 928 int64 last_input_number_;
923 929
924 BrowserRenderingStats rendering_stats_; 930 BrowserRenderingStats rendering_stats_;
925 931
926 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 932 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
927 }; 933 };
928 934
929 } // namespace content 935 } // namespace content
930 936
931 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 937 #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