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

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
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | no next file » | 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 #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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending"); 960 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending");
961 return; 961 return;
962 } 962 }
963 if (is_accelerated_compositing_active_ && 963 if (is_accelerated_compositing_active_ &&
964 num_swapbuffers_complete_pending_ >= kMaxSwapBuffersPending) { 964 num_swapbuffers_complete_pending_ >= kMaxSwapBuffersPending) {
965 TRACE_EVENT0("renderer", "EarlyOut_MaxSwapBuffersPending"); 965 TRACE_EVENT0("renderer", "EarlyOut_MaxSwapBuffersPending");
966 return; 966 return;
967 } 967 }
968 968
969 // Suppress updating when we are hidden. 969 // Suppress updating when we are hidden.
970 if (is_hidden_ || size_.IsEmpty()) { 970 if (is_hidden_ || size_.IsEmpty() || is_swapped_out_) {
971 paint_aggregator_.ClearPendingUpdate(); 971 paint_aggregator_.ClearPendingUpdate();
972 needs_repainting_on_restore_ = true; 972 needs_repainting_on_restore_ = true;
973 TRACE_EVENT0("renderer", "EarlyOut_NotVisible"); 973 TRACE_EVENT0("renderer", "EarlyOut_NotVisible");
974 return; 974 return;
975 } 975 }
976 976
977 if (is_accelerated_compositing_active_) 977 if (is_accelerated_compositing_active_)
978 using_asynchronous_swapbuffers_ = SupportsAsynchronousSwapBuffers(); 978 using_asynchronous_swapbuffers_ = SupportsAsynchronousSwapBuffers();
979 979
980 // Tracking of frame rate jitter 980 // Tracking of frame rate jitter
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 2045
2046 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 2046 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
2047 return false; 2047 return false;
2048 } 2048 }
2049 2049
2050 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { 2050 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const {
2051 return true; 2051 return true;
2052 } 2052 }
2053 2053
2054 } // namespace content 2054 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698