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

Unified Diff: ui/compositor/clip_transform_recorder.h

Issue 1133923002: ui: Replace std::vector with a simple array in ClipTransformRecorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/compositor/clip_transform_recorder.cc » ('j') | ui/compositor/clip_transform_recorder.cc » ('J')
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 84f340d75ac318475c173b5f2581f329b30578bf..276b845cf5b3351dd8036b7e0085b848a624fa5e 100644
--- a/ui/compositor/clip_transform_recorder.h
+++ b/ui/compositor/clip_transform_recorder.h
@@ -46,7 +46,10 @@ class COMPOSITOR_EXPORT ClipTransformRecorder {
TRANSFORM,
};
const PaintContext& context_;
- std::vector<Closer> closers_;
+ // If someone needs to do more than this many operations with a single
+ // ClipTransformRecorder then increase the size of the closers_ array.
+ Closer closers_[4];
+ size_t num_closers_;
DISALLOW_COPY_AND_ASSIGN(ClipTransformRecorder);
};
« no previous file with comments | « no previous file | ui/compositor/clip_transform_recorder.cc » ('j') | ui/compositor/clip_transform_recorder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698