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

Side by Side Diff: content/renderer/render_widget.h

Issue 288633002: Remove renderer-side tracking of accelerated compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on piman;danakj review Created 6 years, 7 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 | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // IPC::Listener 115 // IPC::Listener
116 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 116 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
117 117
118 // IPC::Sender 118 // IPC::Sender
119 virtual bool Send(IPC::Message* msg) OVERRIDE; 119 virtual bool Send(IPC::Message* msg) OVERRIDE;
120 120
121 // blink::WebWidgetClient 121 // blink::WebWidgetClient
122 virtual void suppressCompositorScheduling(bool enable); 122 virtual void suppressCompositorScheduling(bool enable);
123 virtual void willBeginCompositorFrame(); 123 virtual void willBeginCompositorFrame();
124 virtual void didAutoResize(const blink::WebSize& new_size); 124 virtual void didAutoResize(const blink::WebSize& new_size);
125 virtual void didActivateCompositor() OVERRIDE;
126 virtual void didDeactivateCompositor();
127 virtual void initializeLayerTreeView(); 125 virtual void initializeLayerTreeView();
128 virtual blink::WebLayerTreeView* layerTreeView(); 126 virtual blink::WebLayerTreeView* layerTreeView();
129 virtual void didBecomeReadyForAdditionalInput(); 127 virtual void didBecomeReadyForAdditionalInput();
130 virtual void didCommitAndDrawCompositorFrame(); 128 virtual void didCommitAndDrawCompositorFrame();
131 virtual void didCompleteSwapBuffers(); 129 virtual void didCompleteSwapBuffers();
132 virtual void scheduleComposite(); 130 virtual void scheduleComposite();
133 virtual void didFocus(); 131 virtual void didFocus();
134 virtual void didBlur(); 132 virtual void didBlur();
135 virtual void didChangeCursor(const blink::WebCursorInfo&); 133 virtual void didChangeCursor(const blink::WebCursorInfo&);
136 virtual void closeWidgetSoon(); 134 virtual void closeWidgetSoon();
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 gfx::Rect window_screen_rect_; 632 gfx::Rect window_screen_rect_;
635 633
636 scoped_ptr<IPC::Message> pending_input_event_ack_; 634 scoped_ptr<IPC::Message> pending_input_event_ack_;
637 635
638 // The time spent in input handlers this frame. Used to throttle input acks. 636 // The time spent in input handlers this frame. Used to throttle input acks.
639 base::TimeDelta total_input_handling_time_this_frame_; 637 base::TimeDelta total_input_handling_time_this_frame_;
640 638
641 // Indicates if the next sequence of Char events should be suppressed or not. 639 // Indicates if the next sequence of Char events should be suppressed or not.
642 bool suppress_next_char_events_; 640 bool suppress_next_char_events_;
643 641
644 // Set to true if painting to the window is handled by the accelerated
645 // compositor.
646 bool is_accelerated_compositing_active_;
647
648 // Properties of the screen hosting this RenderWidget instance. 642 // Properties of the screen hosting this RenderWidget instance.
649 blink::WebScreenInfo screen_info_; 643 blink::WebScreenInfo screen_info_;
650 644
651 // The device scale factor. This value is computed from the DPI entries in 645 // The device scale factor. This value is computed from the DPI entries in
652 // |screen_info_| on some platforms, and defaults to 1 on other platforms. 646 // |screen_info_| on some platforms, and defaults to 1 on other platforms.
653 float device_scale_factor_; 647 float device_scale_factor_;
654 648
655 // State associated with synthetic gestures. Synthetic gestures are processed 649 // State associated with synthetic gestures. Synthetic gestures are processed
656 // in-order, so a queue is sufficient to identify the correct state for a 650 // in-order, so a queue is sufficient to identify the correct state for a
657 // completed gesture. 651 // completed gesture.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 695
702 ui::MenuSourceType context_menu_source_type_; 696 ui::MenuSourceType context_menu_source_type_;
703 gfx::Point touch_editing_context_menu_location_; 697 gfx::Point touch_editing_context_menu_location_;
704 698
705 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 699 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
706 }; 700 };
707 701
708 } // namespace content 702 } // namespace content
709 703
710 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 704 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698