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

Unified Diff: cc/layers/layer.h

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +will-change Created 4 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
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 97e83c339b461fbb9523b05e55835b552d39877a..f3a14588617fdb228d2ad460a2f9cee9717aeebd 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -507,6 +507,13 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
bool HasActiveAnimationForTesting() const;
+ void set_has_will_change_transform_hint(bool has_will_change) {
+ has_will_change_transform_hint_ = has_will_change;
danakj 2016/05/05 00:09:49 Don't you need to SetNeedsCommit? (which will SetN
vmpstr 2016/05/05 01:33:50 Done.
+ }
+ bool has_will_change_transform_hint() const {
+ return has_will_change_transform_hint_;
+ }
+
protected:
friend class LayerImpl;
friend class TreeSynchronizer;
@@ -680,6 +687,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
gfx::Rect visible_layer_rect_;
size_t num_unclipped_descendants_;
+ bool has_will_change_transform_hint_;
danakj 2016/05/05 00:09:49 group this with the other bools
vmpstr 2016/05/05 01:33:50 Done.
+
DISALLOW_COPY_AND_ASSIGN(Layer);
};

Powered by Google App Engine
This is Rietveld 408576698