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

Side by Side Diff: ui/compositor/transform_recorder.h

Issue 1470123002: Split ClipTransformRecorder into {Clip,Transform}Recorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_COMPOSITOR_TRANSFORM_RECORDER_H_
6 #define UI_COMPOSITOR_TRANSFORM_RECORDER_H_
7
8 #include "base/macros.h"
9 #include "ui/compositor/compositor_export.h"
10
11 namespace cc {
12 class DisplayItem;
13 class DisplayItemList;
14 }
15
16 namespace gfx {
17 class Transform;
18 }
19
20 namespace ui {
21 class PaintContext;
22
23 // A class to provide scoped transforms of painting to a
24 // DisplayItemList. The transform provided will be applied to any
25 // DisplayItems added to the DisplayItemList while this object is
danakj 2015/11/23 23:20:30 is this wrapped at 80 or 72?
wkorman 2015/11/23 23:38:08 Done. I fixed my emacs config to address hencefort
26 // alive. In other words, any nested PaintRecorders or other
27 // TransformRecorders will be transformed.
28 class COMPOSITOR_EXPORT TransformRecorder {
29 public:
30 explicit TransformRecorder(const PaintContext& context);
31 ~TransformRecorder();
32
33 void Transform(const gfx::Transform& transform);
34
35 private:
36 const PaintContext& context_;
37 bool transformed_;
38
39 DISALLOW_COPY_AND_ASSIGN(TransformRecorder);
40 };
41
42 } // namespace ui
43
44 #endif // UI_COMPOSITOR_TRANSFORM_RECORDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698