Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Side by Side Diff: content/public/common/web_preferences.h

Issue 2605993002: Experiment with more aggressive MSE GC on memory pressure (Closed)
Patch Set: Improve feature handling (CR feedback) Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // If enabled, disabled video track when the video is in the background. 265 // If enabled, disabled video track when the video is in the background.
266 bool background_video_track_optimization_enabled; 266 bool background_video_track_optimization_enabled;
267 267
268 // If background video track optimization is enabled, don't disable video 268 // If background video track optimization is enabled, don't disable video
269 // track for videos with the average keyframe distance greater than this 269 // track for videos with the average keyframe distance greater than this
270 // value. 270 // value.
271 // TODO(avayvod, asvitkine): Query the value directly when it is available in 271 // TODO(avayvod, asvitkine): Query the value directly when it is available in
272 // the renderer process. See https://crbug.com/681160. 272 // the renderer process. See https://crbug.com/681160.
273 base::TimeDelta max_keyframe_distance_to_disable_background_video; 273 base::TimeDelta max_keyframe_distance_to_disable_background_video;
274 274
275 // When MSE garbage-collection on memory pressure is enabled, the
DaleCurtis 2017/01/26 23:07:36 "When memory pressure based garbage collection is
servolk 2017/01/27 00:52:13 Done.
276 // |mse_force_gc_on_memory_pressure| controls whether the GC is done
277 // immediately on memory pressure notification or during the next SourceBuffer
278 // append (slower, but more MSE-spec compliant).
DaleCurtis 2017/01/26 23:07:36 s/more/is/
servolk 2017/01/27 00:52:13 Done.
279 // TODO(avayvod, asvitkine): Query the value directly when it is available in
DaleCurtis 2017/01/26 23:07:36 s/avayvod/servolk/
servolk 2017/01/27 00:52:13 Done.
280 // the renderer process. See https://crbug.com/681160.
281 bool mse_force_gc_on_memory_pressure;
282
275 // Whether it is a presentation receiver. 283 // Whether it is a presentation receiver.
276 bool presentation_receiver; 284 bool presentation_receiver;
277 285
278 // We try to keep the default values the same as the default values in 286 // We try to keep the default values the same as the default values in
279 // chrome, except for the cases where it would require lots of extra work for 287 // chrome, except for the cases where it would require lots of extra work for
280 // the embedder to use the same default value. 288 // the embedder to use the same default value.
281 WebPreferences(); 289 WebPreferences();
282 WebPreferences(const WebPreferences& other); 290 WebPreferences(const WebPreferences& other);
283 ~WebPreferences(); 291 ~WebPreferences();
284 }; 292 };
285 293
286 } // namespace content 294 } // namespace content
287 295
288 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 296 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698