Rename SurfaceLayer::hit_testable_ to surface_hit_testable_
We want to propagate pointer-events: none information to cc to generate
correct hit testing data for viz. The plan is to have blink set the hit
testable bit on cc::Layers. In order to disambiguate the bit in surface
layer that represents the origin of the surface, we want to rename the
variable.
Bug: 841358
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I207815dcfad0f29b222b0a39c350f1e926aedac9
Reviewed-on: https://chromium-review.googlesource.com/1052506
Reviewed-by: Bo <[email protected]>
Reviewed-by: Robert Kroeger <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Robert Flack <[email protected]>
Commit-Queue: Xianda Sun <[email protected]>
Cr-Commit-Position: refs/heads/master@{#558450}
diff --git a/cc/layers/surface_layer_impl.h b/cc/layers/surface_layer_impl.h
index d51dd6a..ce24320 100644
--- a/cc/layers/surface_layer_impl.h
+++ b/cc/layers/surface_layer_impl.h
@@ -50,8 +50,8 @@
return stretch_content_to_fill_bounds_;
}
- void SetHitTestable(bool hit_testable);
- bool hit_testable() const { return hit_testable_; }
+ void SetSurfaceHitTestable(bool surface_hit_testable);
+ bool surface_hit_testable() const { return surface_hit_testable_; }
// LayerImpl overrides.
std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
@@ -79,7 +79,7 @@
base::Optional<uint32_t> deadline_in_frames_;
bool stretch_content_to_fill_bounds_ = false;
- bool hit_testable_ = false;
+ bool surface_hit_testable_ = false;
DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl);
};