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

Side by Side Diff: cc/surfaces/display.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 | « cc/output/gl_renderer_unittest.cc ('k') | cc/surfaces/display.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 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 CC_SURFACES_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 ~Display() override; 64 ~Display() override;
65 65
66 void Initialize(DisplayClient* client, SurfaceManager* surface_manager); 66 void Initialize(DisplayClient* client, SurfaceManager* surface_manager);
67 67
68 // device_scale_factor is used to communicate to the external window system 68 // device_scale_factor is used to communicate to the external window system
69 // what scale this was rendered at. 69 // what scale this was rendered at.
70 void SetLocalSurfaceId(const LocalSurfaceId& id, float device_scale_factor); 70 void SetLocalSurfaceId(const LocalSurfaceId& id, float device_scale_factor);
71 void SetVisible(bool visible); 71 void SetVisible(bool visible);
72 void Resize(const gfx::Size& new_size); 72 void Resize(const gfx::Size& new_size);
73 void SetColorSpace(const gfx::ColorSpace& color_space); 73 void SetColorSpace(const gfx::ColorSpace& blending_color_space,
74 const gfx::ColorSpace& device_color_space);
74 void SetOutputIsSecure(bool secure); 75 void SetOutputIsSecure(bool secure);
75 76
76 const SurfaceId& CurrentSurfaceId(); 77 const SurfaceId& CurrentSurfaceId();
77 78
78 // DisplaySchedulerClient implementation. 79 // DisplaySchedulerClient implementation.
79 bool DrawAndSwap() override; 80 bool DrawAndSwap() override;
80 81
81 // OutputSurfaceClient implementation. 82 // OutputSurfaceClient implementation.
82 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; 83 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
83 void DidReceiveSwapBuffersAck() override; 84 void DidReceiveSwapBuffersAck() override;
(...skipping 17 matching lines...) Expand all
101 SharedBitmapManager* const bitmap_manager_; 102 SharedBitmapManager* const bitmap_manager_;
102 gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_; 103 gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_;
103 const RendererSettings settings_; 104 const RendererSettings settings_;
104 105
105 DisplayClient* client_ = nullptr; 106 DisplayClient* client_ = nullptr;
106 SurfaceManager* surface_manager_ = nullptr; 107 SurfaceManager* surface_manager_ = nullptr;
107 const FrameSinkId frame_sink_id_; 108 const FrameSinkId frame_sink_id_;
108 SurfaceId current_surface_id_; 109 SurfaceId current_surface_id_;
109 gfx::Size current_surface_size_; 110 gfx::Size current_surface_size_;
110 float device_scale_factor_ = 1.f; 111 float device_scale_factor_ = 1.f;
112 gfx::ColorSpace blending_color_space_;
111 gfx::ColorSpace device_color_space_; 113 gfx::ColorSpace device_color_space_;
112 bool visible_ = false; 114 bool visible_ = false;
113 bool swapped_since_resize_ = false; 115 bool swapped_since_resize_ = false;
114 bool output_is_secure_ = false; 116 bool output_is_secure_ = false;
115 117
116 // The begin_frame_source_ is not owned here, and also often known by the 118 // The begin_frame_source_ is not owned here, and also often known by the
117 // output_surface_ and the scheduler_. 119 // output_surface_ and the scheduler_.
118 BeginFrameSource* begin_frame_source_; 120 BeginFrameSource* begin_frame_source_;
119 std::unique_ptr<OutputSurface> output_surface_; 121 std::unique_ptr<OutputSurface> output_surface_;
120 std::unique_ptr<DisplayScheduler> scheduler_; 122 std::unique_ptr<DisplayScheduler> scheduler_;
121 std::unique_ptr<ResourceProvider> resource_provider_; 123 std::unique_ptr<ResourceProvider> resource_provider_;
122 std::unique_ptr<SurfaceAggregator> aggregator_; 124 std::unique_ptr<SurfaceAggregator> aggregator_;
123 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 125 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
124 std::unique_ptr<DirectRenderer> renderer_; 126 std::unique_ptr<DirectRenderer> renderer_;
125 SoftwareRenderer* software_renderer_ = nullptr; 127 SoftwareRenderer* software_renderer_ = nullptr;
126 std::vector<ui::LatencyInfo> stored_latency_info_; 128 std::vector<ui::LatencyInfo> stored_latency_info_;
127 129
128 private: 130 private:
129 DISALLOW_COPY_AND_ASSIGN(Display); 131 DISALLOW_COPY_AND_ASSIGN(Display);
130 }; 132 };
131 133
132 } // namespace cc 134 } // namespace cc
133 135
134 #endif // CC_SURFACES_DISPLAY_H_ 136 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698