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

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

Issue 1123983002: cc: Use a ListContainer for DisplayItemList to reduce allocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaylistcontainer: fixdcheck 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
« no previous file with comments | « cc/test/fake_display_list_recording_source.h ('k') | ui/compositor/clip_transform_recorder.cc » ('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 2015 The Chromium Authors. All rights reserved. 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 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 UI_COMPOSITOR_CLIP_TRANSFORM_RECORDER_H_ 5 #ifndef UI_COMPOSITOR_CLIP_TRANSFORM_RECORDER_H_
6 #define UI_COMPOSITOR_CLIP_TRANSFORM_RECORDER_H_ 6 #define UI_COMPOSITOR_CLIP_TRANSFORM_RECORDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 explicit ClipTransformRecorder(const PaintContext& context); 34 explicit ClipTransformRecorder(const PaintContext& context);
35 ~ClipTransformRecorder(); 35 ~ClipTransformRecorder();
36 36
37 void ClipRect(const gfx::Rect& clip_rect); 37 void ClipRect(const gfx::Rect& clip_rect);
38 void ClipPath(const gfx::Path& clip_path); 38 void ClipPath(const gfx::Path& clip_path);
39 void ClipPathWithAntiAliasing(const gfx::Path& clip_path); 39 void ClipPathWithAntiAliasing(const gfx::Path& clip_path);
40 void Transform(const gfx::Transform& transform); 40 void Transform(const gfx::Transform& transform);
41 41
42 private: 42 private:
43 enum Closer {
44 CLIP_RECT,
45 CLIP_PATH,
46 TRANSFORM,
47 };
43 const PaintContext& context_; 48 const PaintContext& context_;
44 std::vector<cc::DisplayItem*> closers_; 49 std::vector<Closer> closers_;
45 50
46 DISALLOW_COPY_AND_ASSIGN(ClipTransformRecorder); 51 DISALLOW_COPY_AND_ASSIGN(ClipTransformRecorder);
47 }; 52 };
48 53
49 } // namespace ui 54 } // namespace ui
50 55
51 #endif // UI_COMPOSITOR_CLIP_TRANSFORM_RECORDER_H_ 56 #endif // UI_COMPOSITOR_CLIP_TRANSFORM_RECORDER_H_
OLDNEW
« no previous file with comments | « cc/test/fake_display_list_recording_source.h ('k') | ui/compositor/clip_transform_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698