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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.h

Issue 2565223002: Add more specific metrics for main thread scrolling reasons (Closed)
Patch Set: Add preferCompositingToLCDTextEnable check Created 4 years 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, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // For the z-order children of a compositing layer: 50 // For the z-order children of a compositing layer:
51 // If a child layers has a compositing layer, then all subsequent layers 51 // If a child layers has a compositing layer, then all subsequent layers
52 // must be compositing in order to render above that layer. 52 // must be compositing in order to render above that layer.
53 // 53 //
54 // If a child in the negative z-order list is compositing, then the layer 54 // If a child in the negative z-order list is compositing, then the layer
55 // itself must be compositing so that its contents render over that 55 // itself must be compositing so that its contents render over that
56 // child. This implies that its positive z-index children must also be 56 // child. This implies that its positive z-index children must also be
57 // compositing. 57 // compositing.
58 // 58 //
59 void update(PaintLayer* root); 59 void update(PaintLayer* root);
60 void updateMainThreadScrollingReasonsFromStyle(const PaintLayer*) const;
60 61
61 private: 62 private:
62 class OverlapMap; 63 class OverlapMap;
63 class RecursionData; 64 class RecursionData;
64 65
65 void updateRecursive(PaintLayer* ancestorLayer, 66 void updateRecursive(PaintLayer* ancestorLayer,
66 PaintLayer* currentLayer, 67 PaintLayer* currentLayer,
67 OverlapMap&, 68 OverlapMap&,
68 RecursionData&, 69 RecursionData&,
69 bool& descendantHas3DTransform, 70 bool& descendantHas3DTransform,
70 Vector<PaintLayer*>& unclippedDescendants, 71 Vector<PaintLayer*>& unclippedDescendants,
71 IntRect& absoluteDescendantBoundingBox); 72 IntRect& absoluteDescendantBoundingBox);
72 73
73 LayoutView& m_layoutView; 74 LayoutView& m_layoutView;
74 CompositingReasonFinder& m_compositingReasonFinder; 75 CompositingReasonFinder& m_compositingReasonFinder;
75 }; 76 };
76 77
77 } // namespace blink 78 } // namespace blink
78 79
79 #endif // CompositingRequirementsUpdater_h 80 #endif // CompositingRequirementsUpdater_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698