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

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

Issue 2851453005: Mark some non-spinvalidation methods deprecated, and update paint/README.md (Closed)
Patch Set: - Created 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintInvalidationState_h 5 #ifndef PaintInvalidationState_h
6 #define PaintInvalidationState_h 6 #define PaintInvalidationState_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/paint/PaintInvalidator.h" 9 #include "core/paint/PaintInvalidator.h"
10 #include "platform/geometry/LayoutRect.h" 10 #include "platform/geometry/LayoutRect.h"
11 #include "platform/graphics/PaintInvalidationReason.h" 11 #include "platform/graphics/PaintInvalidationReason.h"
12 #include "platform/transforms/AffineTransform.h" 12 #include "platform/transforms/AffineTransform.h"
13 #include "platform/wtf/Allocator.h" 13 #include "platform/wtf/Allocator.h"
14 #include "platform/wtf/Noncopyable.h" 14 #include "platform/wtf/Noncopyable.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class LayoutBoxModelObject; 18 class LayoutBoxModelObject;
19 class LayoutObject; 19 class LayoutObject;
20 class LayoutView; 20 class LayoutView;
21 class PaintLayer; 21 class PaintLayer;
22 22
23 // This is deprecated by PaintInvalidator when SlimmingPaintInvalidation is
24 // enabled.
25 //
23 // PaintInvalidationState is an optimization used during the paint 26 // PaintInvalidationState is an optimization used during the paint
24 // invalidation phase. 27 // invalidation phase.
25 // 28 //
26 // This class is extremely close to LayoutState so see the documentation 29 // This class is extremely close to LayoutState so see the documentation
27 // of LayoutState for the class existence and performance benefits. 30 // of LayoutState for the class existence and performance benefits.
28 // 31 //
29 // The main difference with LayoutState is that it was customized for the 32 // The main difference with LayoutState is that it was customized for the
30 // needs of the paint invalidation systems (keeping visual rectangles 33 // needs of the paint invalidation systems (keeping visual rectangles
31 // instead of layout specific information). 34 // instead of layout specific information).
32 // 35 //
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void MapLocalRectToVisualRectInBacking(const LayoutObject&, 196 void MapLocalRectToVisualRectInBacking(const LayoutObject&,
194 LayoutRect&) const override; 197 LayoutRect&) const override;
195 198
196 private: 199 private:
197 const PaintInvalidationState& paint_invalidation_state_; 200 const PaintInvalidationState& paint_invalidation_state_;
198 }; 201 };
199 202
200 } // namespace blink 203 } // namespace blink
201 204
202 #endif // PaintInvalidationState_h 205 #endif // PaintInvalidationState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698