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

Unified Diff: content/common/gpu/media/rendering_helper.h

Issue 583503002: rendering_helper - Warm up the rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and nit Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/rendering_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/rendering_helper.h
diff --git a/content/common/gpu/media/rendering_helper.h b/content/common/gpu/media/rendering_helper.h
index 26e8fb20cf0f9e7aee34e5c70a91ae709ae79b37..ce7f4e192b57e6ad448e6f697655b6970e3c5bdd 100644
--- a/content/common/gpu/media/rendering_helper.h
+++ b/content/common/gpu/media/rendering_helper.h
@@ -52,6 +52,10 @@ struct RenderingHelperParams {
// The rendering FPS.
int rendering_fps;
+ // The number of empty frames rendered when the rendering helper is
+ // initialized.
+ int warm_up_iterations;
+
// The desired size of each window. We play each stream in its own window
// on the screen.
std::vector<gfx::Size> window_sizes;
@@ -149,6 +153,8 @@ class RenderingHelper {
void RenderContent();
+ void WarmUpRendering(int warm_up_iterations);
+
void LayoutRenderingAreas(const std::vector<gfx::Size>& window_sizes);
// Render |texture_id| to the current view port of the screen using target
« no previous file with comments | « no previous file | content/common/gpu/media/rendering_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698