cc: Ensure changes to a Layer's content bounds or scale get pushed

This changes UpdateLayerContentsScale(Layer* layer, ...) so that if
the layer's content bounds or contents scale are changed, then its
needs_push_properties() flag is set.

BUG=345267

Review URL: https://codereview.chromium.org/178303002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253140 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 2f891ec..37772e9 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -440,10 +440,14 @@
 
   virtual bool SupportsLCDText() const;
 
+  void SetNeedsPushProperties();
   bool needs_push_properties() const { return needs_push_properties_; }
   bool descendant_needs_push_properties() const {
     return num_dependents_need_push_properties_ > 0;
   }
+  void reset_needs_push_properties_for_testing() {
+    needs_push_properties_ = false;
+  }
 
   virtual void RunMicroBenchmark(MicroBenchmark* benchmark);
 
@@ -476,7 +480,6 @@
   // Called when the blend mode or filters have been changed.
   void SetNeedsFilterContextIfNeeded();
 
-  void SetNeedsPushProperties();
   void AddDependentNeedsPushProperties();
   void RemoveDependentNeedsPushProperties();
   bool parent_should_know_need_push_properties() const {