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

Side by Side 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 unified diff | 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 »
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
53 protected: 60 protected:
54 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>; 61 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>;
55 ~TestInProcessContextProvider() override; 62 ~TestInProcessContextProvider() override;
56 63
57 private: 64 private:
58 TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 65 TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
59 TestImageFactory image_factory_; 66 TestImageFactory image_factory_;
60 std::unique_ptr<gpu::GLInProcessContext> context_; 67 std::unique_ptr<gpu::GLInProcessContext> context_;
61 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; 68 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_;
62 std::unique_ptr<ContextCacheController> cache_controller_; 69 std::unique_ptr<ContextCacheController> cache_controller_;
63 base::Lock context_lock_; 70 base::Lock context_lock_;
71
72 bool capabilities_disable_one_component_textures_ = false;
73 bool capabilities_texture_half_float_linear_ = false;
64 }; 74 };
65 75
66 } // namespace cc 76 } // namespace cc
67 77
68 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 78 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« 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