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

Unified Diff: cc/test/test_in_process_context_provider.h

Issue 2122573003: media: replace LUMINANCE_F16 by RG_88 for 9/10-bit h264 videos Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to ToT 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/test/data/yuv_stripes_rgba.png ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_in_process_context_provider.h
diff --git a/cc/test/test_in_process_context_provider.h b/cc/test/test_in_process_context_provider.h
index 0b8ea123c70b83fc767627d7583c864956d4e265..b6bd6cb5e44e5b71bbb6b2edb198d6c30a1fd766 100644
--- a/cc/test/test_in_process_context_provider.h
+++ b/cc/test/test_in_process_context_provider.h
@@ -50,6 +50,13 @@ class TestInProcessContextProvider : public ContextProvider {
void SetLostContextCallback(
const LostContextCallback& lost_context_callback) override;
+ void SetDisableOneComponentTextures(bool disable) {
+ capabilities_disable_one_component_textures_ = disable;
+ }
+ void SetSupportTextureHalfFloatLinear(bool support) {
+ capabilities_texture_half_float_linear_ = support;
+ }
+
protected:
friend class base::RefCountedThreadSafe<TestInProcessContextProvider>;
~TestInProcessContextProvider() override;
@@ -61,6 +68,9 @@ class TestInProcessContextProvider : public ContextProvider {
std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_;
std::unique_ptr<ContextCacheController> cache_controller_;
base::Lock context_lock_;
+
+ bool capabilities_disable_one_component_textures_ = false;
+ bool capabilities_texture_half_float_linear_ = false;
};
} // namespace cc
« no previous file with comments | « cc/test/data/yuv_stripes_rgba.png ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698