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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.h

Issue 1497873002: Make DisplayItemClient an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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
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 ClipRecorder_h 5 #ifndef ClipRecorder_h
6 #define ClipRecorder_h 6 #define ClipRecorder_h
7 7
8 #include "SkRegion.h" 8 #include "SkRegion.h"
9 #include "platform/geometry/LayoutRect.h" 9 #include "platform/geometry/LayoutRect.h"
10 #include "platform/graphics/paint/DisplayItem.h" 10 #include "platform/graphics/paint/DisplayItem.h"
11 #include "wtf/Allocator.h" 11 #include "wtf/Allocator.h"
12 #include "wtf/Noncopyable.h" 12 #include "wtf/Noncopyable.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class GraphicsContext; 16 class GraphicsContext;
17 17
18 class PLATFORM_EXPORT ClipRecorder { 18 class PLATFORM_EXPORT ClipRecorder {
19 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 19 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
20 WTF_MAKE_NONCOPYABLE(ClipRecorder); 20 WTF_MAKE_NONCOPYABLE(ClipRecorder);
21 public: 21 public:
22 ClipRecorder(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem: :Type, const LayoutRect& clipRect); 22 ClipRecorder(GraphicsContext&, const DisplayItemClient&, DisplayItem::Type, const LayoutRect& clipRect);
23 ~ClipRecorder(); 23 ~ClipRecorder();
24 private: 24 private:
25 DisplayItemClientWrapper m_client; 25 const DisplayItemClient& m_client;
26 GraphicsContext& m_context; 26 GraphicsContext& m_context;
27 DisplayItem::Type m_type; 27 DisplayItem::Type m_type;
28 }; 28 };
29 29
30 } // namespace blink 30 } // namespace blink
31 31
32 #endif // ClipRecorder_h 32 #endif // ClipRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698