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

Side by Side Diff: Source/core/paint/FloatClipRecorder.h

Issue 1144203004: Allow certain SP recorder classes to defer their "begin" operation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/core/paint/FileUploadControlPainter.cpp ('k') | Source/core/paint/FloatClipRecorder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FloatClipRecorder_h 5 #ifndef FloatClipRecorder_h
6 #define FloatClipRecorder_h 6 #define FloatClipRecorder_h
7 7
8 #include "core/paint/PaintPhase.h" 8 #include "core/paint/PaintPhase.h"
9 #include "platform/geometry/FloatRect.h" 9 #include "platform/geometry/FloatRect.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 FloatClipRecorder { 14 class FloatClipRecorder {
15 public: 15 public:
16 FloatClipRecorder(GraphicsContext&, const DisplayItemClientWrapper&, PaintPh ase);
16 FloatClipRecorder(GraphicsContext&, const DisplayItemClientWrapper&, PaintPh ase, const FloatRect&); 17 FloatClipRecorder(GraphicsContext&, const DisplayItemClientWrapper&, PaintPh ase, const FloatRect&);
18 ~FloatClipRecorder();
17 19
18 ~FloatClipRecorder(); 20 void begin(const FloatRect&);
19 21
20 private: 22 private:
21 GraphicsContext& m_context; 23 GraphicsContext& m_context;
22 DisplayItemClientWrapper m_client; 24 DisplayItemClientWrapper m_client;
23 DisplayItem::Type m_clipType; 25 DisplayItem::Type m_clipType;
26 bool m_engaged;
24 }; 27 };
25 28
26 } // namespace blink 29 } // namespace blink
27 30
28 #endif // FloatClipRecorder_h 31 #endif // FloatClipRecorder_h
OLDNEW
« no previous file with comments | « Source/core/paint/FileUploadControlPainter.cpp ('k') | Source/core/paint/FloatClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698