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

Side by Side Diff: cc/test/test_in_process_context_provider.h

Issue 2463103002: Revert of Fix HTML5 video blurry (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « cc/test/render_pass_test_utils.cc ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 5 #ifndef CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
6 #define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 6 #define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 gpu::gles2::GLES2Interface* ContextGL() override; 43 gpu::gles2::GLES2Interface* ContextGL() override;
44 gpu::ContextSupport* ContextSupport() override; 44 gpu::ContextSupport* ContextSupport() override;
45 class GrContext* GrContext() override; 45 class GrContext* GrContext() override;
46 ContextCacheController* CacheController() override; 46 ContextCacheController* CacheController() override;
47 void InvalidateGrContext(uint32_t state) override; 47 void InvalidateGrContext(uint32_t state) override;
48 base::Lock* GetLock() override; 48 base::Lock* GetLock() override;
49 gpu::Capabilities ContextCapabilities() override; 49 gpu::Capabilities ContextCapabilities() override;
50 void SetLostContextCallback( 50 void SetLostContextCallback(
51 const LostContextCallback& lost_context_callback) override; 51 const LostContextCallback& lost_context_callback) override;
52 52
53 void SetDisableOneComponentTextures(bool disable) {
54 capabilities_disable_one_component_textures_ = disable;
55 }
56 void SetSupportTextureHalfFloatLinear(bool support) {
57 capabilities_texture_half_float_linear_ = support;
58 }
59
60 protected: 53 protected:
61 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>; 54 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>;
62 ~TestInProcessContextProvider() override; 55 ~TestInProcessContextProvider() override;
63 56
64 private: 57 private:
65 TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 58 TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
66 TestImageFactory image_factory_; 59 TestImageFactory image_factory_;
67 std::unique_ptr<gpu::GLInProcessContext> context_; 60 std::unique_ptr<gpu::GLInProcessContext> context_;
68 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; 61 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_;
69 std::unique_ptr<ContextCacheController> cache_controller_; 62 std::unique_ptr<ContextCacheController> cache_controller_;
70 base::Lock context_lock_; 63 base::Lock context_lock_;
71
72 bool capabilities_disable_one_component_textures_ = false;
73 bool capabilities_texture_half_float_linear_ = false;
74 }; 64 };
75 65
76 } // namespace cc 66 } // namespace cc
77 67
78 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 68 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_utils.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