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

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

Issue 1680213002: Start using deferred rendering for WebView on L. Base URL: https://chromium.googlesource.com/chromium/src.git@measure_copy
Patch Set: cleanup Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/android_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/android_video_decode_accelerator.h
diff --git a/content/common/gpu/media/android_video_decode_accelerator.h b/content/common/gpu/media/android_video_decode_accelerator.h
index ab2c4da815e9d92c4c8747b7b68feea2295b87e5..da2d266280225fa4de92396c76e07621d17325b2 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.h
+++ b/content/common/gpu/media/android_video_decode_accelerator.h
@@ -220,6 +220,14 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
// Return true if and only if we should use deferred rendering.
static bool UseDeferredRenderingStrategy();
+ // Return true if and only if the deferred strategy requires that the
+ // resulting VideoFrames have COPY_REQUIRED set. This is for WebView.
+ static bool DeferredStrategyNeedsBrowserCopy();
+
+ // Return true if and only if SurfaceTexture supports user-provided threads
+ // for OnFrameAvailable callbacks.
+ static bool IsCallbackThreadable();
+
// Used to DCHECK that we are called on the correct thread.
base::ThreadChecker thread_checker_;
« no previous file with comments | « no previous file | content/common/gpu/media/android_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698