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

Side by Side Diff: ui/compositor/compositor.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 | « mash/test/mash_test_suite.cc ('k') | ui/compositor/compositor.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Inform the display corresponding to this compositor if it is visible. When 104 // Inform the display corresponding to this compositor if it is visible. When
105 // false it does not need to produce any frames. Visibility is reset for each 105 // false it does not need to produce any frames. Visibility is reset for each
106 // call to CreateCompositorFrameSink. 106 // call to CreateCompositorFrameSink.
107 virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0; 107 virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0;
108 108
109 // Resize the display corresponding to this compositor to a particular size. 109 // Resize the display corresponding to this compositor to a particular size.
110 virtual void ResizeDisplay(ui::Compositor* compositor, 110 virtual void ResizeDisplay(ui::Compositor* compositor,
111 const gfx::Size& size) = 0; 111 const gfx::Size& size) = 0;
112 112
113 // Set the output color profile into which this compositor should render. 113 // Set the output color profile into which this compositor should render.
114 virtual void SetDisplayColorSpace(ui::Compositor* compositor, 114 virtual void SetDisplayColorSpace(
115 const gfx::ColorSpace& color_space) = 0; 115 ui::Compositor* compositor,
116 const gfx::ColorSpace& blending_color_space,
117 const gfx::ColorSpace& output_color_space) = 0;
116 118
117 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 119 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
118 base::TimeDelta interval) = 0; 120 base::TimeDelta interval) = 0;
119 // Mac path for transporting vsync parameters to the display. Other platforms 121 // Mac path for transporting vsync parameters to the display. Other platforms
120 // update it via the BrowserCompositorCompositorFrameSink directly. 122 // update it via the BrowserCompositorCompositorFrameSink directly.
121 virtual void SetDisplayVSyncParameters(ui::Compositor* compositor, 123 virtual void SetDisplayVSyncParameters(ui::Compositor* compositor,
122 base::TimeTicks timebase, 124 base::TimeTicks timebase,
123 base::TimeDelta interval) = 0; 125 base::TimeDelta interval) = 0;
124 126
125 virtual void SetOutputIsSecure(Compositor* compositor, bool secure) = 0; 127 virtual void SetOutputIsSecure(Compositor* compositor, bool secure) = 0;
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // layers on. 430 // layers on.
429 float device_scale_factor_; 431 float device_scale_factor_;
430 432
431 bool locks_will_time_out_; 433 bool locks_will_time_out_;
432 CompositorLock* compositor_lock_; 434 CompositorLock* compositor_lock_;
433 435
434 LayerAnimatorCollection layer_animator_collection_; 436 LayerAnimatorCollection layer_animator_collection_;
435 scoped_refptr<cc::AnimationTimeline> animation_timeline_; 437 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
436 std::unique_ptr<ScopedAnimationDurationScaleMode> slow_animations_; 438 std::unique_ptr<ScopedAnimationDurationScaleMode> slow_animations_;
437 439
438 gfx::ColorSpace color_space_; 440 gfx::ColorSpace output_color_space_;
441 gfx::ColorSpace blending_color_space_;
439 442
440 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 443 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
441 444
442 DISALLOW_COPY_AND_ASSIGN(Compositor); 445 DISALLOW_COPY_AND_ASSIGN(Compositor);
443 }; 446 };
444 447
445 } // namespace ui 448 } // namespace ui
446 449
447 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 450 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « mash/test/mash_test_suite.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698