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

Side by Side Diff: Source/platform/graphics/paint/ClipDisplayItem.h

Issue 723103002: Revert "Move ViewDisplayList to GraphicsLayer" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 ClipDisplayItem_h
6 #define ClipDisplayItem_h
7
8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/IntRect.h"
10 #include "platform/graphics/paint/DisplayItem.h"
11 #include "wtf/Vector.h"
12
13 namespace blink {
14
15 class RoundedRect;
16
17 class PLATFORM_EXPORT ClipDisplayItem : public DisplayItem {
18 public:
19 ClipDisplayItem(DisplayItemClient client, Type type, IntRect clipRect)
20 : DisplayItem(client, type), m_clipRect(clipRect) { }
21
22 Vector<RoundedRect>& roundedRectClips() { return m_roundedRectClips; }
23
24 private:
25 virtual void replay(GraphicsContext*) override;
26
27 IntRect m_clipRect;
28 Vector<RoundedRect> m_roundedRectClips;
29 #ifndef NDEBUG
30 virtual WTF::String asDebugString() const override;
31 #endif
32 };
33
34 class PLATFORM_EXPORT EndClipDisplayItem : public DisplayItem {
35 public:
36 EndClipDisplayItem() : DisplayItem(0, EndClip) { }
37
38 private:
39 virtual void replay(GraphicsContext*) override;
40 };
41
42 } // namespace blink
43
44 #endif // ClipDisplayItem_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/paint/ClipDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698