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

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

Issue 1944623002: CC Animation: Use ElementId to attach CC animation players. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasedomids
Patch Set: Let CC clients generate their own ElementIds locally. Created 4 years, 7 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, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Returns true if the assignment actually changed the assigned squashing la yer. 142 // Returns true if the assignment actually changed the assigned squashing la yer.
143 bool updateSquashingLayerAssignment(PaintLayer* squashedLayer, size_t nextSq uashedLayerIndex); 143 bool updateSquashingLayerAssignment(PaintLayer* squashedLayer, size_t nextSq uashedLayerIndex);
144 void removeLayerFromSquashingGraphicsLayer(const PaintLayer*); 144 void removeLayerFromSquashingGraphicsLayer(const PaintLayer*);
145 #if ENABLE(ASSERT) 145 #if ENABLE(ASSERT)
146 bool verifyLayerInSquashingVector(const PaintLayer*); 146 bool verifyLayerInSquashingVector(const PaintLayer*);
147 #endif 147 #endif
148 148
149 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex, Vector <PaintLayer*>& layersNeedingPaintInvalidation); 149 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex, Vector <PaintLayer*>& layersNeedingPaintInvalidation);
150 void updateRenderingContext(); 150 void updateRenderingContext();
151 void updateShouldFlattenTransform(); 151 void updateShouldFlattenTransform();
152 void updateElementIdAndCompositorMutableProperties(); 152 void updateCompositorElementId();
153 void updateCompositorMutableProperties();
153 154
154 // GraphicsLayerClient interface 155 // GraphicsLayerClient interface
155 void notifyFirstPaint() override; 156 void notifyFirstPaint() override;
156 void notifyFirstTextPaint() override; 157 void notifyFirstTextPaint() override;
157 void notifyFirstImagePaint() override; 158 void notifyFirstImagePaint() override;
158 159
159 IntRect computeInterestRect(const GraphicsLayer*, const IntRect& previousInt erestRect) const override; 160 IntRect computeInterestRect(const GraphicsLayer*, const IntRect& previousInt erestRect) const override;
160 LayoutSize subpixelAccumulation() const final; 161 LayoutSize subpixelAccumulation() const final;
161 bool needsRepaint(const GraphicsLayer&) const override; 162 bool needsRepaint(const GraphicsLayer&) const override;
162 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect& interestRect) const override; 163 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect& interestRect) const override;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 446
446 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 447 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
447 unsigned m_scrollingContentsAreEmpty : 1; 448 unsigned m_scrollingContentsAreEmpty : 1;
448 449
449 friend class CompositedLayerMappingTest; 450 friend class CompositedLayerMappingTest;
450 }; 451 };
451 452
452 } // namespace blink 453 } // namespace blink
453 454
454 #endif // CompositedLayerMapping_h 455 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698