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

Side by Side Diff: ui/compositor/test/in_process_context_factory.h

Issue 2728173004: HDR: Do nonlinear blending in the compositor (Closed)
Patch Set: Fix windows build Created 3 years, 9 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 | « ui/compositor/compositor.cc ('k') | ui/gfx/color_space.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 5 #ifndef UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool DoesCreateTestContexts() override; 56 bool DoesCreateTestContexts() override;
57 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 57 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
58 gfx::BufferUsage usage) override; 58 gfx::BufferUsage usage) override;
59 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 59 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
60 cc::TaskGraphRunner* GetTaskGraphRunner() override; 60 cc::TaskGraphRunner* GetTaskGraphRunner() override;
61 cc::FrameSinkId AllocateFrameSinkId() override; 61 cc::FrameSinkId AllocateFrameSinkId() override;
62 cc::SurfaceManager* GetSurfaceManager() override; 62 cc::SurfaceManager* GetSurfaceManager() override;
63 void SetDisplayVisible(ui::Compositor* compositor, bool visible) override; 63 void SetDisplayVisible(ui::Compositor* compositor, bool visible) override;
64 void ResizeDisplay(ui::Compositor* compositor, 64 void ResizeDisplay(ui::Compositor* compositor,
65 const gfx::Size& size) override; 65 const gfx::Size& size) override;
66 void SetDisplayColorSpace(ui::Compositor* compositor, 66 void SetDisplayColorSpace(
67 const gfx::ColorSpace& color_space) override {} 67 ui::Compositor* compositor,
68 const gfx::ColorSpace& blending_color_space,
69 const gfx::ColorSpace& output_color_space) override {}
68 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 70 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
69 base::TimeDelta interval) override {} 71 base::TimeDelta interval) override {}
70 void SetDisplayVSyncParameters(ui::Compositor* compositor, 72 void SetDisplayVSyncParameters(ui::Compositor* compositor,
71 base::TimeTicks timebase, 73 base::TimeTicks timebase,
72 base::TimeDelta interval) override {} 74 base::TimeDelta interval) override {}
73 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {} 75 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {}
74 void AddObserver(ContextFactoryObserver* observer) override; 76 void AddObserver(ContextFactoryObserver* observer) override;
75 void RemoveObserver(ContextFactoryObserver* observer) override; 77 void RemoveObserver(ContextFactoryObserver* observer) override;
76 78
77 private: 79 private:
(...skipping 16 matching lines...) Expand all
94 using PerCompositorDataMap = 96 using PerCompositorDataMap =
95 base::hash_map<ui::Compositor*, std::unique_ptr<PerCompositorData>>; 97 base::hash_map<ui::Compositor*, std::unique_ptr<PerCompositorData>>;
96 PerCompositorDataMap per_compositor_data_; 98 PerCompositorDataMap per_compositor_data_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 100 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
99 }; 101 };
100 102
101 } // namespace ui 103 } // namespace ui
102 104
103 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 105 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/gfx/color_space.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698