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

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

Issue 2039363003: FirstMeaningfulPaint UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 #if ENABLE(ASSERT) 148 #if ENABLE(ASSERT)
149 bool verifyLayerInSquashingVector(const PaintLayer*); 149 bool verifyLayerInSquashingVector(const PaintLayer*);
150 #endif 150 #endif
151 151
152 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex, Vector <PaintLayer*>& layersNeedingPaintInvalidation); 152 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex, Vector <PaintLayer*>& layersNeedingPaintInvalidation);
153 void updateRenderingContext(); 153 void updateRenderingContext();
154 void updateShouldFlattenTransform(); 154 void updateShouldFlattenTransform();
155 void updateElementIdAndCompositorMutableProperties(); 155 void updateElementIdAndCompositorMutableProperties();
156 156
157 // GraphicsLayerClient interface 157 // GraphicsLayerClient interface
158 void notifyFirstPaint() override; 158 void notifyPaint(bool isFirstPaint, bool textPainted, bool imagePainted) ove rride;
159 void notifyFirstTextPaint() override;
160 void notifyFirstImagePaint() override;
161 159
162 IntRect computeInterestRect(const GraphicsLayer*, const IntRect& previousInt erestRect) const override; 160 IntRect computeInterestRect(const GraphicsLayer*, const IntRect& previousInt erestRect) const override;
163 LayoutSize subpixelAccumulation() const final; 161 LayoutSize subpixelAccumulation() const final;
164 bool needsRepaint(const GraphicsLayer&) const override; 162 bool needsRepaint(const GraphicsLayer&) const override;
165 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;
166 164
167 bool isTrackingPaintInvalidations() const override; 165 bool isTrackingPaintInvalidations() const override;
168 166
169 #if ENABLE(ASSERT) 167 #if ENABLE(ASSERT)
170 void verifyNotPainting() override; 168 void verifyNotPainting() override;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 460
463 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 461 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
464 unsigned m_scrollingContentsAreEmpty : 1; 462 unsigned m_scrollingContentsAreEmpty : 1;
465 463
466 friend class CompositedLayerMappingTest; 464 friend class CompositedLayerMappingTest;
467 }; 465 };
468 466
469 } // namespace blink 467 } // namespace blink
470 468
471 #endif // CompositedLayerMapping_h 469 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698