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

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

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Sami's comments, DisplayScheduler observes while BFSObservers exist. Created 4 years 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_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/observer_list.h" 17 #include "base/observer_list.h"
18 #include "base/process/kill.h" 18 #include "base/process/kill.h"
19 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
20 #include "base/timer/timer.h" 20 #include "base/timer/timer.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "cc/output/begin_frame_args.h"
22 #include "cc/output/compositor_frame.h" 23 #include "cc/output/compositor_frame.h"
23 #include "cc/surfaces/surface_id.h" 24 #include "cc/surfaces/surface_id.h"
24 #include "content/browser/renderer_host/event_with_latency_info.h" 25 #include "content/browser/renderer_host/event_with_latency_info.h"
25 #include "content/common/content_export.h" 26 #include "content/common/content_export.h"
26 #include "content/common/input/input_event_ack_state.h" 27 #include "content/common/input/input_event_ack_state.h"
27 #include "content/public/browser/readback_types.h" 28 #include "content/public/browser/readback_types.h"
28 #include "content/public/browser/render_widget_host_view.h" 29 #include "content/public/browser/render_widget_host_view.h"
29 #include "content/public/common/screen_info.h" 30 #include "content/public/common/screen_info.h"
30 #include "ipc/ipc_listener.h" 31 #include "ipc/ipc_listener.h"
31 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h" 32 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); 203 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget();
203 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); 204 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible();
204 205
205 // Informs that the focused DOM node has changed. 206 // Informs that the focused DOM node has changed.
206 virtual void FocusedNodeChanged(bool is_editable_node, 207 virtual void FocusedNodeChanged(bool is_editable_node,
207 const gfx::Rect& node_bounds_in_screen) {} 208 const gfx::Rect& node_bounds_in_screen) {}
208 209
209 virtual void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, 210 virtual void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
210 cc::CompositorFrame frame) {} 211 cc::CompositorFrame frame) {}
211 212
213 virtual void OnBeginFrameDidNotDraw(cc::BeginFrameAck ack) {}
214
212 // This method exists to allow removing of displayed graphics, after a new 215 // This method exists to allow removing of displayed graphics, after a new
213 // page has been loaded, to prevent the displayed URL from being out of sync 216 // page has been loaded, to prevent the displayed URL from being out of sync
214 // with what is visible on screen. 217 // with what is visible on screen.
215 virtual void ClearCompositorFrame() = 0; 218 virtual void ClearCompositorFrame() = 0;
216 219
217 // Because the associated remote WebKit instance can asynchronously 220 // Because the associated remote WebKit instance can asynchronously
218 // prevent-default on a dispatched touch event, the touch events are queued in 221 // prevent-default on a dispatched touch event, the touch events are queued in
219 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 222 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
220 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) 223 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS)
221 // or ignored (when |ack_result| is CONSUMED). 224 // or ignored (when |ack_result| is CONSUMED).
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 502 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
500 503
501 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 504 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
502 505
503 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 506 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
504 }; 507 };
505 508
506 } // namespace content 509 } // namespace content
507 510
508 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 511 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698