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

Side by Side Diff: third_party/WebKit/Source/core/paint/Transform3DRecorder.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 Transform3DRecorder_h 5 #ifndef Transform3DRecorder_h
6 #define Transform3DRecorder_h 6 #define Transform3DRecorder_h
7 7
8 #include "platform/graphics/paint/DisplayItem.h" 8 #include "platform/graphics/paint/DisplayItem.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class FloatPoint3D; 13 class FloatPoint3D;
14 class GraphicsContext; 14 class GraphicsContext;
15 class TransformationMatrix; 15 class TransformationMatrix;
16 16
17 class Transform3DRecorder { 17 class Transform3DRecorder {
18 STACK_ALLOCATED(); 18 STACK_ALLOCATED();
19 public: 19 public:
20 Transform3DRecorder( 20 Transform3DRecorder(
21 GraphicsContext&, 21 GraphicsContext&,
22 const DisplayItemClientWrapper&, 22 const DisplayItemClient&,
23 DisplayItem::Type, 23 DisplayItem::Type,
24 const TransformationMatrix&, 24 const TransformationMatrix&,
25 const FloatPoint3D& transformOrigin); 25 const FloatPoint3D& transformOrigin);
26 ~Transform3DRecorder(); 26 ~Transform3DRecorder();
27 27
28 private: 28 private:
29 GraphicsContext& m_context; 29 GraphicsContext& m_context;
30 DisplayItemClientWrapper m_client; 30 const DisplayItemClient& m_client;
31 DisplayItem::Type m_type; 31 DisplayItem::Type m_type;
32 bool m_skipRecordingForIdentityTransform; 32 bool m_skipRecordingForIdentityTransform;
33 }; 33 };
34 34
35 } // namespace blink 35 } // namespace blink
36 36
37 #endif // Transform3DRecorder_h 37 #endif // Transform3DRecorder_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ScrollRecorder.cpp ('k') | third_party/WebKit/Source/core/paint/Transform3DRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698