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

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

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
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 ClipDisplayItem_h 5 #ifndef ClipDisplayItem_h
6 #define ClipDisplayItem_h 6 #define ClipDisplayItem_h
7 7
8 #include "SkRegion.h" 8 #include "SkRegion.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/geometry/FloatRoundedRect.h" 10 #include "platform/geometry/FloatRoundedRect.h"
(...skipping 12 matching lines...) Expand all
23 { 23 {
24 ASSERT(isClipType(type)); 24 ASSERT(isClipType(type));
25 } 25 }
26 26
27 ClipDisplayItem(const DisplayItemClientWrapper& client, Type type, const Int Rect& clipRect, Vector<FloatRoundedRect>& roundedRectClips) 27 ClipDisplayItem(const DisplayItemClientWrapper& client, Type type, const Int Rect& clipRect, Vector<FloatRoundedRect>& roundedRectClips)
28 : ClipDisplayItem(client, type, clipRect) 28 : ClipDisplayItem(client, type, clipRect)
29 { 29 {
30 m_roundedRectClips.swap(roundedRectClips); 30 m_roundedRectClips.swap(roundedRectClips);
31 } 31 }
32 32
33 virtual void replay(GraphicsContext&) override; 33 void replay(GraphicsContext&) override;
34 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; 34 void appendToWebDisplayItemList(WebDisplayItemList*) const override;
35 35
36 private: 36 private:
37 #ifndef NDEBUG 37 #ifndef NDEBUG
38 virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override ; 38 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
39 #endif 39 #endif
40 const IntRect m_clipRect; 40 const IntRect m_clipRect;
41 Vector<FloatRoundedRect> m_roundedRectClips; 41 Vector<FloatRoundedRect> m_roundedRectClips;
42 }; 42 };
43 43
44 class PLATFORM_EXPORT EndClipDisplayItem : public PairedEndDisplayItem { 44 class PLATFORM_EXPORT EndClipDisplayItem : public PairedEndDisplayItem {
45 public: 45 public:
46 EndClipDisplayItem(const DisplayItemClientWrapper& client, Type type) 46 EndClipDisplayItem(const DisplayItemClientWrapper& client, Type type)
47 : PairedEndDisplayItem(client, type) 47 : PairedEndDisplayItem(client, type)
48 { 48 {
49 ASSERT(isEndClipType(type)); 49 ASSERT(isEndClipType(type));
50 } 50 }
51 51
52 virtual void replay(GraphicsContext&) override; 52 void replay(GraphicsContext&) override;
53 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; 53 void appendToWebDisplayItemList(WebDisplayItemList*) const override;
54 54
55 private: 55 private:
56 #if ENABLE(ASSERT) 56 #if ENABLE(ASSERT)
57 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override final { return DisplayItem::isClipType(otherType); } 57 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return Di splayItem::isClipType(otherType); }
58 #endif 58 #endif
59 }; 59 };
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // ClipDisplayItem_h 63 #endif // ClipDisplayItem_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/CachedDisplayItem.h ('k') | Source/platform/graphics/paint/ClipPathDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698