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

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

Issue 1198583003: Remove SkRegion::kIntersect_Op parameter from ClipDisplayItems (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
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 11
12 namespace blink { 12 namespace blink {
13 13
14 class GraphicsContext; 14 class GraphicsContext;
15 15
16 class PLATFORM_EXPORT ClipRecorder { 16 class PLATFORM_EXPORT ClipRecorder {
17 WTF_MAKE_FAST_ALLOCATED(ClipRecorder); 17 WTF_MAKE_FAST_ALLOCATED(ClipRecorder);
18 public: 18 public:
19 ClipRecorder(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem: :Type, const LayoutRect& clipRect, SkRegion::Op = SkRegion::kIntersect_Op); 19 ClipRecorder(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem: :Type, const LayoutRect& clipRect);
20 ~ClipRecorder(); 20 ~ClipRecorder();
21 private: 21 private:
22 DisplayItemClientWrapper m_client; 22 DisplayItemClientWrapper m_client;
23 GraphicsContext& m_context; 23 GraphicsContext& m_context;
24 DisplayItem::Type m_type; 24 DisplayItem::Type m_type;
25 }; 25 };
26 26
27 } // namespace blink 27 } // namespace blink
28 28
29 #endif // ClipRecorder_h 29 #endif // ClipRecorder_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/ClipDisplayItem.cpp ('k') | Source/platform/graphics/paint/ClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698