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 |