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

Side by Side Diff: Source/platform/graphics/paint/CompositingDisplayItem.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 CompositingDisplayItem_h 5 #ifndef CompositingDisplayItem_h
6 #define CompositingDisplayItem_h 6 #define CompositingDisplayItem_h
7 7
8 #include "platform/geometry/FloatRect.h" 8 #include "platform/geometry/FloatRect.h"
9 #include "platform/graphics/GraphicsTypes.h" 9 #include "platform/graphics/GraphicsTypes.h"
10 #include "platform/graphics/paint/DisplayItem.h" 10 #include "platform/graphics/paint/DisplayItem.h"
(...skipping 11 matching lines...) Expand all
22 : PairedBeginDisplayItem(client, BeginCompositing) 22 : PairedBeginDisplayItem(client, BeginCompositing)
23 , m_xferMode(xferMode) 23 , m_xferMode(xferMode)
24 , m_opacity(opacity) 24 , m_opacity(opacity)
25 , m_hasBounds(bounds) 25 , m_hasBounds(bounds)
26 , m_colorFilter(colorFilter) 26 , m_colorFilter(colorFilter)
27 { 27 {
28 if (bounds) 28 if (bounds)
29 m_bounds = FloatRect(*bounds); 29 m_bounds = FloatRect(*bounds);
30 } 30 }
31 31
32 virtual void replay(GraphicsContext&) override; 32 void replay(GraphicsContext&) override;
33 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; 33 void appendToWebDisplayItemList(WebDisplayItemList*) const override;
34 34
35 private: 35 private:
36 #ifndef NDEBUG 36 #ifndef NDEBUG
37 virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override ; 37 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
38 #endif 38 #endif
39 const SkXfermode::Mode m_xferMode; 39 const SkXfermode::Mode m_xferMode;
40 const float m_opacity; 40 const float m_opacity;
41 bool m_hasBounds; 41 bool m_hasBounds;
42 FloatRect m_bounds; 42 FloatRect m_bounds;
43 ColorFilter m_colorFilter; 43 ColorFilter m_colorFilter;
44 }; 44 };
45 45
46 class PLATFORM_EXPORT EndCompositingDisplayItem : public PairedEndDisplayItem { 46 class PLATFORM_EXPORT EndCompositingDisplayItem : public PairedEndDisplayItem {
47 public: 47 public:
48 EndCompositingDisplayItem(const DisplayItemClientWrapper& client) 48 EndCompositingDisplayItem(const DisplayItemClientWrapper& client)
49 : PairedEndDisplayItem(client, EndCompositing) { } 49 : PairedEndDisplayItem(client, EndCompositing) { }
50 50
51 virtual void replay(GraphicsContext&) override; 51 void replay(GraphicsContext&) override;
52 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; 52 void appendToWebDisplayItemList(WebDisplayItemList*) const override;
53 53
54 private: 54 private:
55 #if ENABLE(ASSERT) 55 #if ENABLE(ASSERT)
56 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override final { return otherType == BeginCompositing; } 56 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot herType == BeginCompositing; }
57 #endif 57 #endif
58 }; 58 };
59 59
60 } // namespace blink 60 } // namespace blink
61 61
62 #endif // CompositingDisplayItem_h 62 #endif // CompositingDisplayItem_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/ClipPathDisplayItem.h ('k') | Source/platform/graphics/paint/DisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698