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

Unified Diff: cc/test/test_in_process_context_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/test/test_context_provider.cc ('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 7e3033a96af7826de5d5731f452df1e93a1c8a49..3568792bd3426f5bfb7706554e2b9d60cbee4d15 100644
--- a/cc/test/test_in_process_context_provider.h
+++ b/cc/test/test_in_process_context_provider.h
@@ -49,6 +49,9 @@ class TestInProcessContextProvider : public viz::ContextProvider {
gpu::Capabilities ContextCapabilities() override;
void SetLostContextCallback(
const LostContextCallback& lost_context_callback) override;
+ void SetSupportTextureNorm16(bool support) {
+ capabilities_texture_norm16_ = support;
+ }
protected:
friend class base::RefCountedThreadSafe<TestInProcessContextProvider>;
@@ -61,6 +64,7 @@ class TestInProcessContextProvider : public viz::ContextProvider {
std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_;
std::unique_ptr<viz::ContextCacheController> cache_controller_;
base::Lock context_lock_;
+ bool capabilities_texture_norm16_ = false;
};
} // namespace cc
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698