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

Side by Side Diff: Source/platform/graphics/paint/ClipPathDisplayItem.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 ClipPathDisplayItem_h 5 #ifndef ClipPathDisplayItem_h
6 #define ClipPathDisplayItem_h 6 #define ClipPathDisplayItem_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/graphics/Path.h" 9 #include "platform/graphics/Path.h"
10 #include "platform/graphics/paint/DisplayItem.h" 10 #include "platform/graphics/paint/DisplayItem.h"
11 #include "third_party/skia/include/core/SkPath.h" 11 #include "third_party/skia/include/core/SkPath.h"
12 #include "wtf/PassOwnPtr.h" 12 #include "wtf/PassOwnPtr.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class PLATFORM_EXPORT BeginClipPathDisplayItem : public PairedBeginDisplayItem { 16 class PLATFORM_EXPORT BeginClipPathDisplayItem : public PairedBeginDisplayItem {
17 public: 17 public:
18 BeginClipPathDisplayItem(const DisplayItemClientWrapper& client, const Path& clipPath) 18 BeginClipPathDisplayItem(const DisplayItemClientWrapper& client, const Path& clipPath)
19 : PairedBeginDisplayItem(client, BeginClipPath) 19 : PairedBeginDisplayItem(client, BeginClipPath)
20 , m_clipPath(clipPath.skPath()) { } 20 , m_clipPath(clipPath.skPath()) { }
21 21
22 virtual void replay(GraphicsContext&) override; 22 void replay(GraphicsContext&) override;
23 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; 23 void appendToWebDisplayItemList(WebDisplayItemList*) const override;
24 24
25 private: 25 private:
26 const SkPath m_clipPath; 26 const SkPath m_clipPath;
27 #ifndef NDEBUG 27 #ifndef NDEBUG
28 virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override ; 28 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
29 #endif 29 #endif
30 }; 30 };
31 31
32 class PLATFORM_EXPORT EndClipPathDisplayItem : public PairedEndDisplayItem { 32 class PLATFORM_EXPORT EndClipPathDisplayItem : public PairedEndDisplayItem {
33 public: 33 public:
34 EndClipPathDisplayItem(const DisplayItemClientWrapper& client) 34 EndClipPathDisplayItem(const DisplayItemClientWrapper& client)
35 : PairedEndDisplayItem(client, EndClipPath) { } 35 : PairedEndDisplayItem(client, EndClipPath) { }
36 36
37 virtual void replay(GraphicsContext&) override; 37 void replay(GraphicsContext&) override;
38 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; 38 void appendToWebDisplayItemList(WebDisplayItemList*) const override;
39 39
40 private: 40 private:
41 #if ENABLE(ASSERT) 41 #if ENABLE(ASSERT)
42 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override final { return otherType == BeginClipPath; } 42 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot herType == BeginClipPath; }
43 #endif 43 #endif
44 }; 44 };
45 45
46 } // namespace blink 46 } // namespace blink
47 47
48 #endif // ClipPathDisplayItem_h 48 #endif // ClipPathDisplayItem_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/ClipDisplayItem.h ('k') | Source/platform/graphics/paint/CompositingDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698