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

Unified Diff: media/gpu/android_video_decode_accelerator.h

Issue 2052103002: Enable deferred rendering strategy for Android WebView for Spitzer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spitzer-aw-disable-tests
Patch Set: Created 4 years, 6 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
Index: media/gpu/android_video_decode_accelerator.h
diff --git a/media/gpu/android_video_decode_accelerator.h b/media/gpu/android_video_decode_accelerator.h
index 6885bdaebbf1e96010820248f11e839e9993eefa..8113979c2878ee65a234095f53a5f1850d1d1fad 100644
--- a/media/gpu/android_video_decode_accelerator.h
+++ b/media/gpu/android_video_decode_accelerator.h
@@ -344,10 +344,13 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator
// this.
void OnDestroyingSurface(int surface_id);
- // Return true if and only if we should use deferred rendering.
+ // Returns true if and only if we should use deferred rendering.
static bool UseDeferredRenderingStrategy(
const gpu::GpuPreferences& gpu_preferences);
+ // Returns true if frame's COPY_REQUIRED flag needs to be set.
+ static bool RequiresTextureCopy(const gpu::GpuPreferences& gpu_preferences);
+
// Used to DCHECK that we are called on the correct thread.
base::ThreadChecker thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698