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

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

Issue 11776010: overscroll: Take a screenshot at more appropriate times. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
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 #include "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending"); 976 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending");
977 return; 977 return;
978 } 978 }
979 if (is_accelerated_compositing_active_ && 979 if (is_accelerated_compositing_active_ &&
980 num_swapbuffers_complete_pending_ >= kMaxSwapBuffersPending) { 980 num_swapbuffers_complete_pending_ >= kMaxSwapBuffersPending) {
981 TRACE_EVENT0("renderer", "EarlyOut_MaxSwapBuffersPending"); 981 TRACE_EVENT0("renderer", "EarlyOut_MaxSwapBuffersPending");
982 return; 982 return;
983 } 983 }
984 984
985 // Suppress updating when we are hidden. 985 // Suppress updating when we are hidden.
986 if (is_hidden_ || size_.IsEmpty()) { 986 if (is_hidden_ || size_.IsEmpty() || is_swapped_out_) {
987 paint_aggregator_.ClearPendingUpdate(); 987 paint_aggregator_.ClearPendingUpdate();
988 needs_repainting_on_restore_ = true; 988 needs_repainting_on_restore_ = true;
989 TRACE_EVENT0("renderer", "EarlyOut_NotVisible"); 989 TRACE_EVENT0("renderer", "EarlyOut_NotVisible");
990 return; 990 return;
991 } 991 }
992 992
993 if (is_accelerated_compositing_active_) 993 if (is_accelerated_compositing_active_)
994 using_asynchronous_swapbuffers_ = SupportsAsynchronousSwapBuffers(); 994 using_asynchronous_swapbuffers_ = SupportsAsynchronousSwapBuffers();
995 995
996 // Tracking of frame rate jitter 996 // Tracking of frame rate jitter
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
2091 2091
2092 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 2092 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
2093 return false; 2093 return false;
2094 } 2094 }
2095 2095
2096 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { 2096 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const {
2097 return true; 2097 return true;
2098 } 2098 }
2099 2099
2100 } // namespace content 2100 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698