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

Side by Side Diff: Source/core/paint/LayerDescendantClipRecorder.h

Issue 1284203004: Generate scroll/clip display item hierarchy for SPv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: stripped localPaintingInfo cleanup and fixed-pos workarounds Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef LayerDescendantClipRecorder_h
6 #define LayerDescendantClipRecorder_h
7
8 #include "core/CoreExport.h"
9 #include "wtf/FastAllocBase.h"
10
11 namespace blink {
12
13 class GraphicsContext;
14 class LayoutBox;
15 class LayoutPoint;
16
17 // Note: This class is designed for SPv2, and has drastically different semantic s than
18 // LayerClipRecorder. In the old layer painting model, a layer is responsible fo r
19 // calculating the accumulated clip from ancestors, and applies the clip to itse lf.
20 // In SPv2, it is the layer that establishes overflow clipping who is responsibl e to clip
21 // its descendants. This class takes a layer, and only issues clip for that laye r.
22 class CORE_EXPORT LayerDescendantClipRecorder {
23 WTF_MAKE_FAST_ALLOCATED(LayerDescendantClipRecorder);
24 public:
25 LayerDescendantClipRecorder(GraphicsContext&, const LayoutBox&, const Layout Point& paintOffset);
26 ~LayerDescendantClipRecorder();
27
28 private:
29 GraphicsContext& m_graphicsContext;
30 const LayoutBox& m_layoutBox;
31 };
32
33 } // namespace blink
34
35 #endif // LayerDescendantClipRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698