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

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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 void OnSetTouchEventEmulationEnabled(bool enabled, bool allow_pinch); 640 void OnSetTouchEventEmulationEnabled(bool enabled, bool allow_pinch);
646 void OnTextInputTypeChanged(ui::TextInputType type, 641 void OnTextInputTypeChanged(ui::TextInputType type,
647 ui::TextInputMode input_mode, 642 ui::TextInputMode input_mode,
648 bool can_compose_inline); 643 bool can_compose_inline);
649 #if defined(OS_MACOSX) || defined(USE_AURA) 644 #if defined(OS_MACOSX) || defined(USE_AURA)
650 void OnImeCompositionRangeChanged( 645 void OnImeCompositionRangeChanged(
651 const gfx::Range& range, 646 const gfx::Range& range,
652 const std::vector<gfx::Rect>& character_bounds); 647 const std::vector<gfx::Rect>& character_bounds);
653 #endif 648 #endif
654 void OnImeCancelComposition(); 649 void OnImeCancelComposition();
655 void OnDidActivateAcceleratedCompositing(bool activated);
656 void OnLockMouse(bool user_gesture, 650 void OnLockMouse(bool user_gesture,
657 bool last_unlocked_by_target, 651 bool last_unlocked_by_target,
658 bool privileged); 652 bool privileged);
659 void OnUnlockMouse(); 653 void OnUnlockMouse();
660 void OnShowDisambiguationPopup(const gfx::Rect& rect, 654 void OnShowDisambiguationPopup(const gfx::Rect& rect,
661 const gfx::Size& size, 655 const gfx::Size& size,
662 const cc::SharedBitmapId& id); 656 const cc::SharedBitmapId& id);
663 #if defined(OS_WIN) 657 #if defined(OS_WIN)
664 void OnWindowlessPluginDummyWindowCreated( 658 void OnWindowlessPluginDummyWindowCreated(
665 gfx::NativeViewId dummy_activation_window); 659 gfx::NativeViewId dummy_activation_window);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 726
733 // Indicates whether a page is loading or not. 727 // Indicates whether a page is loading or not.
734 bool is_loading_; 728 bool is_loading_;
735 729
736 // Indicates whether a page is hidden or not. 730 // Indicates whether a page is hidden or not.
737 bool is_hidden_; 731 bool is_hidden_;
738 732
739 // Indicates whether a page is fullscreen or not. 733 // Indicates whether a page is fullscreen or not.
740 bool is_fullscreen_; 734 bool is_fullscreen_;
741 735
742 // True when a page is rendered directly via the GPU process.
743 bool is_accelerated_compositing_active_;
744
745 // Set if we are waiting for a repaint ack for the view. 736 // Set if we are waiting for a repaint ack for the view.
746 bool repaint_ack_pending_; 737 bool repaint_ack_pending_;
747 738
748 // True when waiting for RESIZE_ACK. 739 // True when waiting for RESIZE_ACK.
749 bool resize_ack_pending_; 740 bool resize_ack_pending_;
750 741
751 // Cached copy of the screen info so that it doesn't need to be updated every 742 // Cached copy of the screen info so that it doesn't need to be updated every
752 // time the window is resized. 743 // time the window is resized.
753 scoped_ptr<blink::WebScreenInfo> screen_info_; 744 scoped_ptr<blink::WebScreenInfo> screen_info_;
754 745
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 #endif 880 #endif
890 881
891 int64 last_input_number_; 882 int64 last_input_number_;
892 883
893 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 884 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
894 }; 885 };
895 886
896 } // namespace content 887 } // namespace content
897 888
898 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 889 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698