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

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

Issue 835653005: gpu: media: RenderingHelper: wait for the display & window to be ready (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pawel's nits Created 5 years, 11 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 817ab1915a3496247c9bb9481942cc10ab8e12be..4292c7476fa35ddee5f75940447bcd8ab9ea94d1 100644
--- a/content/common/gpu/media/rendering_helper.h
+++ b/content/common/gpu/media/rendering_helper.h
@@ -84,13 +84,25 @@ class RenderingHelper {
RenderingHelper();
~RenderingHelper();
- static bool InitializeOneOff();
+ // Initialize GL. This method must be called on the rendering
+ // thread.
+ static void InitializeOneOff(base::WaitableEvent* done);
- // Create the render context and windows by the specified dimensions.
+ // Setup the platform window to display test results. This method
+ // must be called on the main thread.
+ void Setup();
+
+ // Tear down the platform window. This method must be called on the
+ // main thread.
+ void TearDown();
+
+ // Create the render context and windows by the specified
+ // dimensions. This method must be called on the rendering thread.
void Initialize(const RenderingHelperParams& params,
base::WaitableEvent* done);
- // Undo the effects of Initialize() and signal |*done|.
+ // Undo the effects of Initialize() and signal |*done|. This method
+ // must be called on the rendering thread.
void UnInitialize(base::WaitableEvent* done);
// Return a newly-created GLES2 texture id of the specified size, and
« 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