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

Side by Side Diff: Source/core/page/scrolling/ScrollingCoordinator.h

Issue 18187004: Don't update graphics layer positions during coordinated scrolling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Set define in core.gyp Created 7 years, 5 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 | « Source/core/core.gyp ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 enum MainThreadScrollingReasonFlags { 83 enum MainThreadScrollingReasonFlags {
84 HasSlowRepaintObjects = 1 << 0, 84 HasSlowRepaintObjects = 1 << 0,
85 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, 85 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1,
86 HasNonLayerViewportConstrainedObjects = 1 << 2, 86 HasNonLayerViewportConstrainedObjects = 1 << 2,
87 }; 87 };
88 88
89 MainThreadScrollingReasons mainThreadScrollingReasons() const; 89 MainThreadScrollingReasons mainThreadScrollingReasons() const;
90 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread ScrollingReasons() != 0; } 90 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread ScrollingReasons() != 0; }
91 91
92 void willDestroyScrollableArea(ScrollableArea*); 92 void willDestroyScrollableArea(ScrollableArea*);
93 void scrollableAreaScrollLayerDidChange(ScrollableArea*); 93 // Returns true if the coordinator handled this change.
94 bool scrollableAreaScrollLayerDidChange(ScrollableArea*);
94 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion); 95 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion);
95 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); 96 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool);
96 void updateLayerPositionConstraint(RenderLayer*); 97 void updateLayerPositionConstraint(RenderLayer*);
97 void touchEventTargetRectsDidChange(const Document*); 98 void touchEventTargetRectsDidChange(const Document*);
98 99
99 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&) ; 100 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&) ;
100 101
101 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); 102 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons);
102 String mainThreadScrollingReasonsAsText() const; 103 String mainThreadScrollingReasonsAsText() const;
103 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons t IntPoint& frameLocation) const; 104 Region computeShouldHandleScrollGestureOnMainThreadRegion(const Frame*, cons t IntPoint& frameLocation) const;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 136
136 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap; 137 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap;
137 ScrollbarMap m_horizontalScrollbars; 138 ScrollbarMap m_horizontalScrollbars;
138 ScrollbarMap m_verticalScrollbars; 139 ScrollbarMap m_verticalScrollbars;
139 140
140 }; 141 };
141 142
142 } // namespace WebCore 143 } // namespace WebCore
143 144
144 #endif // ScrollingCoordinator_h 145 #endif // ScrollingCoordinator_h
OLDNEW
« no previous file with comments | « Source/core/core.gyp ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698