Bug 1459312 - Expose IsAsyncZoomContainer() in LayerMetricsWrapper. r=kats
authorBotond Ballo <botond@mozilla.com>
Sat, 02 Feb 2019 23:53:41 +0000
changeset 456588 9b072d3caedb94c259611c432da7a9839b93a351
parent 456587 5deb799c5ba37db4fffbffb9bcd1964ef89c72d6
child 456589 494c256e2e374b448b11adbbf14bdfd962841dd2
push id77350
push userbballo@mozilla.com
push dateSat, 02 Feb 2019 23:55:46 +0000
treeherderautoland@a03c30492ed7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1459312
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1459312 - Expose IsAsyncZoomContainer() in LayerMetricsWrapper. r=kats Differential Revision: https://phabricator.services.mozilla.com/D17724
gfx/layers/LayerMetricsWrapper.h
--- a/gfx/layers/LayerMetricsWrapper.h
+++ b/gfx/layers/LayerMetricsWrapper.h
@@ -400,16 +400,27 @@ class MOZ_STACK_CLASS LayerMetricsWrappe
   }
 
   bool IsBackfaceHidden() const {
     MOZ_ASSERT(IsValid());
 
     return mLayer->IsBackfaceHidden();
   }
 
+  Maybe<ScrollableLayerGuid::ViewID> IsAsyncZoomContainer() const {
+    MOZ_ASSERT(IsValid());
+
+    Maybe<ScrollableLayerGuid::ViewID> result = mLayer->IsAsyncZoomContainer();
+
+    // The async zoom container layer should not have any scroll metadata.
+    MOZ_ASSERT(result.isNothing() || mLayer->GetScrollMetadataCount() == 0);
+
+    return result;
+  }
+
   // Expose an opaque pointer to the layer. Mostly used for printf
   // purposes. This is not intended to be a general-purpose accessor
   // for the underlying layer.
   const void* GetLayer() const {
     MOZ_ASSERT(IsValid());
 
     return (void*)mLayer;
   }