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

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

Issue 274163004: Remove browser-side tracking of accelerated compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // got/lost focused. 235 // got/lost focused.
236 virtual void GotFocus(); 236 virtual void GotFocus();
237 virtual void LostCapture(); 237 virtual void LostCapture();
238 238
239 // Called to notify the RenderWidget that it has lost the mouse lock. 239 // Called to notify the RenderWidget that it has lost the mouse lock.
240 virtual void LostMouseLock(); 240 virtual void LostMouseLock();
241 241
242 // Noifies the RenderWidget of the current mouse cursor visibility state. 242 // Noifies the RenderWidget of the current mouse cursor visibility state.
243 void SendCursorVisibilityState(bool is_visible); 243 void SendCursorVisibilityState(bool is_visible);
244 244
245 // Tells us whether the page is rendered directly via the GPU process.
246 bool is_accelerated_compositing_active() {
247 return is_accelerated_compositing_active_;
248 }
249
250 // Notifies the RenderWidgetHost that the View was destroyed. 245 // Notifies the RenderWidgetHost that the View was destroyed.
251 void ViewDestroyed(); 246 void ViewDestroyed();
252 247
253 // Indicates if the page has finished loading. 248 // Indicates if the page has finished loading.
254 void SetIsLoading(bool is_loading); 249 void SetIsLoading(bool is_loading);
255 250
256 // Pause for a moment to wait for pending repaint or resize messages sent to 251 // Pause for a moment to wait for pending repaint or resize messages sent to
257 // the renderer to arrive. If pending resize messages are for an old window 252 // the renderer to arrive. If pending resize messages are for an old window
258 // size, then also pump through a new resize message if there is time. 253 // size, then also pump through a new resize message if there is time.
259 void PauseForPendingResizeOrRepaints(); 254 void PauseForPendingResizeOrRepaints();
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 void OnSetTouchEventEmulationEnabled(bool enabled, bool allow_pinch); 639 void OnSetTouchEventEmulationEnabled(bool enabled, bool allow_pinch);
645 void OnTextInputTypeChanged(ui::TextInputType type, 640 void OnTextInputTypeChanged(ui::TextInputType type,
646 ui::TextInputMode input_mode, 641 ui::TextInputMode input_mode,
647 bool can_compose_inline); 642 bool can_compose_inline);
648 #if defined(OS_MACOSX) || defined(USE_AURA) 643 #if defined(OS_MACOSX) || defined(USE_AURA)
649 void OnImeCompositionRangeChanged( 644 void OnImeCompositionRangeChanged(
650 const gfx::Range& range, 645 const gfx::Range& range,
651 const std::vector<gfx::Rect>& character_bounds); 646 const std::vector<gfx::Rect>& character_bounds);
652 #endif 647 #endif
653 void OnImeCancelComposition(); 648 void OnImeCancelComposition();
654 void OnDidActivateAcceleratedCompositing(bool activated);
655 void OnLockMouse(bool user_gesture, 649 void OnLockMouse(bool user_gesture,
656 bool last_unlocked_by_target, 650 bool last_unlocked_by_target,
657 bool privileged); 651 bool privileged);
658 void OnUnlockMouse(); 652 void OnUnlockMouse();
659 void OnShowDisambiguationPopup(const gfx::Rect& rect, 653 void OnShowDisambiguationPopup(const gfx::Rect& rect,
660 const gfx::Size& size, 654 const gfx::Size& size,
661 const cc::SharedBitmapId& id); 655 const cc::SharedBitmapId& id);
662 #if defined(OS_WIN) 656 #if defined(OS_WIN)
663 void OnWindowlessPluginDummyWindowCreated( 657 void OnWindowlessPluginDummyWindowCreated(
664 gfx::NativeViewId dummy_activation_window); 658 gfx::NativeViewId dummy_activation_window);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 725
732 // Indicates whether a page is loading or not. 726 // Indicates whether a page is loading or not.
733 bool is_loading_; 727 bool is_loading_;
734 728
735 // Indicates whether a page is hidden or not. 729 // Indicates whether a page is hidden or not.
736 bool is_hidden_; 730 bool is_hidden_;
737 731
738 // Indicates whether a page is fullscreen or not. 732 // Indicates whether a page is fullscreen or not.
739 bool is_fullscreen_; 733 bool is_fullscreen_;
740 734
741 // True when a page is rendered directly via the GPU process.
742 bool is_accelerated_compositing_active_;
743
744 // Set if we are waiting for a repaint ack for the view. 735 // Set if we are waiting for a repaint ack for the view.
745 bool repaint_ack_pending_; 736 bool repaint_ack_pending_;
746 737
747 // True when waiting for RESIZE_ACK. 738 // True when waiting for RESIZE_ACK.
748 bool resize_ack_pending_; 739 bool resize_ack_pending_;
749 740
750 // Cached copy of the screen info so that it doesn't need to be updated every 741 // Cached copy of the screen info so that it doesn't need to be updated every
751 // time the window is resized. 742 // time the window is resized.
752 scoped_ptr<blink::WebScreenInfo> screen_info_; 743 scoped_ptr<blink::WebScreenInfo> screen_info_;
753 744
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 #endif 876 #endif
886 877
887 int64 last_input_number_; 878 int64 last_input_number_;
888 879
889 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 880 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
890 }; 881 };
891 882
892 } // namespace content 883 } // namespace content
893 884
894 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 885 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698