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

Unified Diff: cc/resources/resource_provider.cc

Issue 1761893003: Avoid planar YUV resources when one component EGL images are not supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: cc/resources/resource_provider.cc
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index d4a7087fa010008769b9f5e55339efe0c3cd7689..49f6089bc6af3ea8ae4e76feb85c4b3a2e2837c0 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -1248,6 +1248,9 @@ void ResourceProvider::Initialize() {
yuv_highbit_resource_format_ = yuv_resource_format_;
if (caps.gpu.texture_half_float_linear)
yuv_highbit_resource_format_ = LUMINANCE_F16;
+ if (caps.gpu.avoid_one_component_egl_images) {
+ yuv_resource_format_ = yuv_highbit_resource_format_ = RGBA_8888;
+ }
use_sync_query_ = caps.gpu.sync_query;
max_texture_size_ = 0; // Context expects cleared value.
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.h » ('j') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698