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

Side by Side Diff: Source/WebCore/rendering/RenderLayerCompositor.h

Issue 13859006: Rework composited scrolling updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@early-out2
Patch Set: . Created 7 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void setCompositingLayersNeedRebuild(bool needRebuild = true); 115 void setCompositingLayersNeedRebuild(bool needRebuild = true);
116 bool compositingLayersNeedRebuild() const { return m_compositingLayersNeedRe build; } 116 bool compositingLayersNeedRebuild() const { return m_compositingLayersNeedRe build; }
117 117
118 // Controls whether or not to consult geometry when deciding which layers ne ed 118 // Controls whether or not to consult geometry when deciding which layers ne ed
119 // to be composited. Defaults to true. 119 // to be composited. Defaults to true.
120 void setCompositingConsultsOverlap(bool b) { m_compositingConsultsOverlap = b; } 120 void setCompositingConsultsOverlap(bool b) { m_compositingConsultsOverlap = b; }
121 bool compositingConsultsOverlap() const { return m_compositingConsultsOverla p; } 121 bool compositingConsultsOverlap() const { return m_compositingConsultsOverla p; }
122 122
123 // Called when something outside WebKit affects the visible rect (e.g. deleg ated scrolling). Might schedule a layer flush. 123 // Called when something outside WebKit affects the visible rect (e.g. deleg ated scrolling). Might schedule a layer flush.
124 void didChangeVisibleRect(); 124 void didChangeVisibleRect();
125 125
126 void updateDescendantsAreContiguousInStackingOrderRecursive(RenderLayer*);
127 void updateNeedsCompositedScrolling(RenderLayer*);
128
126 // Rebuild the tree of compositing layers 129 // Rebuild the tree of compositing layers
127 void updateCompositingLayers(CompositingUpdateType, RenderLayer* updateRoot = 0); 130 void updateCompositingLayers(CompositingUpdateType, RenderLayer* updateRoot = 0);
128 // This is only used when state changes and we do not exepect a style update or layout to happen soon (e.g. when 131 // This is only used when state changes and we do not exepect a style update or layout to happen soon (e.g. when
129 // we discover that an iframe is overlapped during painting). 132 // we discover that an iframe is overlapped during painting).
130 void scheduleCompositingLayerUpdate(); 133 void scheduleCompositingLayerUpdate();
131 134
132 // Update the compositing state of the given layer. Returns true if that sta te changed. 135 // Update the compositing state of the given layer. Returns true if that sta te changed.
133 enum CompositingChangeRepaint { CompositingChangeRepaintNow, CompositingChan geWillRepaintLater }; 136 enum CompositingChangeRepaint { CompositingChangeRepaintNow, CompositingChan geWillRepaintLater };
134 bool updateLayerCompositingState(RenderLayer*, CompositingChangeRepaint = Co mpositingChangeRepaintNow); 137 bool updateLayerCompositingState(RenderLayer*, CompositingChangeRepaint = Co mpositingChangeRepaintNow);
135 138
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap. 404 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap.
402 double m_obligatoryBackingStoreBytes; 405 double m_obligatoryBackingStoreBytes;
403 double m_secondaryBackingStoreBytes; 406 double m_secondaryBackingStoreBytes;
404 #endif 407 #endif
405 }; 408 };
406 409
407 410
408 } // namespace WebCore 411 } // namespace WebCore
409 412
410 #endif // RenderLayerCompositor_h 413 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698