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

Unified Diff: cc/resources/resource_provider.h

Issue 2969223002: [media]: Replace LUMINANCE_F16 by R16 for 9/10-bit h264 videos.
Patch Set: Fix in resource_format_utils Created 3 years, 4 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/raster/raster_buffer_provider.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 7f05e653ecafca580160b1eadb9a7d356d768bc2..aa1ff32424ce62e2ab91dee0e89427667fe145f4 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -454,6 +454,9 @@ class CC_EXPORT ResourceProvider
// For tests only!
void CreateForTesting(viz::ResourceId id);
+ void SetYUVHighbitResourceFormatForTesting(viz::ResourceFormat format) {
+ settings_.yuv_highbit_resource_format = format;
+ }
// Sets the current read fence. If a resource is locked for read
// and has read fences enabled, the resource will not allow writes
@@ -664,7 +667,7 @@ class CC_EXPORT ResourceProvider
// Returns null if we do not have a viz::ContextProvider.
gpu::gles2::GLES2Interface* ContextGL() const;
- // Holds const settings for the ResourceProvider. Never changed after init.
+ // Holds settings for the ResourceProvider. Never changed after init.
struct Settings {
Settings(viz::ContextProvider* compositor_context_provider,
bool delegated_sync_points_needed,
@@ -683,7 +686,7 @@ class CC_EXPORT ResourceProvider
viz::ResourceFormat best_render_buffer_format = viz::RGBA_8888;
bool enable_color_correct_rasterization = false;
bool delegated_sync_points_required = false;
- } const settings_;
+ } settings_;
ResourceMap resources_;
ChildMap children_;
« no previous file with comments | « cc/raster/raster_buffer_provider.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698