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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/clip_transform_recorder.h
diff --git a/ui/compositor/clip_transform_recorder.h b/ui/compositor/clip_transform_recorder.h
index 7ca70f3de3c16fad59bf7ac2971e64a05809f1ad..84f340d75ac318475c173b5f2581f329b30578bf 100644
--- a/ui/compositor/clip_transform_recorder.h
+++ b/ui/compositor/clip_transform_recorder.h
@@ -40,8 +40,13 @@ class COMPOSITOR_EXPORT ClipTransformRecorder {
void Transform(const gfx::Transform& transform);
private:
+ enum Closer {
+ CLIP_RECT,
+ CLIP_PATH,
+ TRANSFORM,
+ };
const PaintContext& context_;
- std::vector<cc::DisplayItem*> closers_;
+ std::vector<Closer> closers_;
DISALLOW_COPY_AND_ASSIGN(ClipTransformRecorder);
};
« 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