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

Unified Diff: cc/resources/resource_provider.cc

Issue 2418173002: Fix HTML5 video blurry (Closed)
Patch Set: fix nits Created 4 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 | « cc/resources/resource_provider.h ('k') | cc/resources/video_resource_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.cc
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index 42eda06e3e5863520b709e78d1df3256e52dc008..e22c77d8e332a8683e7d9b5a16deea61149895b3 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -411,7 +411,6 @@ ResourceProvider::ResourceProvider(
use_texture_format_bgra_(false),
use_texture_usage_hint_(false),
use_compressed_texture_etc1_(false),
- yuv_resource_format_(LUMINANCE_8),
max_texture_size_(0),
best_texture_format_(RGBA_8888),
best_render_buffer_format_(RGBA_8888),
@@ -449,15 +448,6 @@ ResourceProvider::ResourceProvider(
use_texture_format_bgra_ = caps.texture_format_bgra8888;
use_texture_usage_hint_ = caps.texture_usage;
use_compressed_texture_etc1_ = caps.texture_format_etc1;
-
- if (caps.disable_one_component_textures) {
- yuv_resource_format_ = yuv_highbit_resource_format_ = RGBA_8888;
- } else {
- yuv_resource_format_ = caps.texture_rg ? RED_8 : LUMINANCE_8;
- yuv_highbit_resource_format_ =
- caps.texture_half_float_linear ? LUMINANCE_F16 : yuv_resource_format_;
- }
-
use_sync_query_ = caps.sync_query;
GLES2Interface* gl = ContextGL();
@@ -549,14 +539,6 @@ void ResourceProvider::LoseResourceForTesting(ResourceId id) {
resource->lost = true;
}
-ResourceFormat ResourceProvider::YuvResourceFormat(int bits) const {
- if (bits > 8) {
- return yuv_highbit_resource_format_;
- } else {
- return yuv_resource_format_;
- }
-}
-
ResourceId ResourceProvider::CreateResource(
const gfx::Size& size,
TextureHint hint,
« no previous file with comments | « cc/resources/resource_provider.h ('k') | cc/resources/video_resource_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698