DescriptionRemove NativeViewportClient
This removes the client interface from NativeViewport. This interface
had two methods, OnDestroyed and OnMetricsChanged. OnDestroyed is
redundant with just closing the message pipe. OnMetricsChanged is more
interesting. Since there's no rate limiting in this interface, an
unbounded number of metrics updates could accumulate in this pipe. Since
users of the NativeViewport service will (generally) only care about
the most recent update this replaces the pipe with a request->callback
pair NativeViewport.RequestMetrics. The reply message to this is sent
whenever the metrics change. Callers have been updated to either use
the metrics from the initial creation callback (for samples that do not
handle resize) or continually call RequestMetrics if they wish to track
size / scale changes. This way only one request is pending per
connection.
BUG=451319
R=sky@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/91b812b1af824c8faba2f75d88d31a1532164728
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Messages
Total messages: 9 (2 generated)
|