Commit b045388d authored by Miguel Casas's avatar Miguel Casas Committed by Commit Bot

Canvas lowLatency: add UseCounter

This CL adds a UseCounter for HTMLCanvas lowLatency use cases, to
complement said experiment, see the feature entry in
https://www.chromestatus.com/feature/6360971442388992

Bug: 895907
Change-Id: I7e81c4f317816b301d0845fc4561c8966000db36
Reviewed-on: https://chromium-review.googlesource.com/c/1293557Reviewed-by: default avatarFernando Serboncini <fserb@chromium.org>
Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601605}
parent 2bd13b06
...@@ -2061,6 +2061,7 @@ enum WebFeature { ...@@ -2061,6 +2061,7 @@ enum WebFeature {
kMalformedCSP = 2608, kMalformedCSP = 2608,
kV8AttemptOverrideReadOnlyOnPrototypeSloppy = 2609, kV8AttemptOverrideReadOnlyOnPrototypeSloppy = 2609,
kV8AttemptOverrideReadOnlyOnPrototypeStrict = 2610, kV8AttemptOverrideReadOnlyOnPrototypeStrict = 2610,
kHTMLCanvasElementLowLatency = 2611,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
// Also, run update_use_counter_feature_enum.py in // Also, run update_use_counter_feature_enum.py in
......
...@@ -317,6 +317,9 @@ CanvasRenderingContext* HTMLCanvasElement::GetCanvasRenderingContext( ...@@ -317,6 +317,9 @@ CanvasRenderingContext* HTMLCanvasElement::GetCanvasRenderingContext(
// We don't actually need the begin frame signal when in low latency mode, // We don't actually need the begin frame signal when in low latency mode,
// but we need to subscribe to it or else dispatching frames will not work. // but we need to subscribe to it or else dispatching frames will not work.
frame_dispatcher_->SetNeedsBeginFrame(GetPage()->IsPageVisible()); frame_dispatcher_->SetNeedsBeginFrame(GetPage()->IsPageVisible());
UseCounter::Count(GetDocument().GetFrame(),
WebFeature::kHTMLCanvasElementLowLatency);
} }
SetNeedsCompositingUpdate(); SetNeedsCompositingUpdate();
......
...@@ -20528,6 +20528,7 @@ Called by update_net_error_codes.py.--> ...@@ -20528,6 +20528,7 @@ Called by update_net_error_codes.py.-->
<int value="2608" label="MalformedCSP"/> <int value="2608" label="MalformedCSP"/>
<int value="2609" label="V8AttemptOverrideReadOnlyOnPrototypeSloppy"/> <int value="2609" label="V8AttemptOverrideReadOnlyOnPrototypeSloppy"/>
<int value="2610" label="V8AttemptOverrideReadOnlyOnPrototypeStrict"/> <int value="2610" label="V8AttemptOverrideReadOnlyOnPrototypeStrict"/>
<int value="2611" label="HTMLCanvasElementLowLatency"/>
</enum> </enum>
<enum name="FeaturePolicyFeature"> <enum name="FeaturePolicyFeature">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment