OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 SharedBitmapManager* const bitmap_manager_; | 102 SharedBitmapManager* const bitmap_manager_; |
103 gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_; | 103 gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_; |
104 const RendererSettings settings_; | 104 const RendererSettings settings_; |
105 | 105 |
106 DisplayClient* client_ = nullptr; | 106 DisplayClient* client_ = nullptr; |
107 SurfaceManager* surface_manager_ = nullptr; | 107 SurfaceManager* surface_manager_ = nullptr; |
108 const FrameSinkId frame_sink_id_; | 108 const FrameSinkId frame_sink_id_; |
109 SurfaceId current_surface_id_; | 109 SurfaceId current_surface_id_; |
110 gfx::Size current_surface_size_; | 110 gfx::Size current_surface_size_; |
111 float device_scale_factor_ = 1.f; | 111 float device_scale_factor_ = 1.f; |
112 gfx::ColorSpace blending_color_space_; | 112 gfx::ColorSpace blending_color_space_ = gfx::ColorSpace::CreateSRGB(); |
113 gfx::ColorSpace device_color_space_; | 113 gfx::ColorSpace device_color_space_ = gfx::ColorSpace::CreateSRGB(); |
114 bool visible_ = false; | 114 bool visible_ = false; |
115 bool swapped_since_resize_ = false; | 115 bool swapped_since_resize_ = false; |
116 bool output_is_secure_ = false; | 116 bool output_is_secure_ = false; |
117 | 117 |
118 // 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 |
119 // output_surface_ and the scheduler_. | 119 // output_surface_ and the scheduler_. |
120 BeginFrameSource* begin_frame_source_; | 120 BeginFrameSource* begin_frame_source_; |
121 std::unique_ptr<OutputSurface> output_surface_; | 121 std::unique_ptr<OutputSurface> output_surface_; |
122 std::unique_ptr<DisplayScheduler> scheduler_; | 122 std::unique_ptr<DisplayScheduler> scheduler_; |
123 std::unique_ptr<ResourceProvider> resource_provider_; | 123 std::unique_ptr<ResourceProvider> resource_provider_; |
124 std::unique_ptr<SurfaceAggregator> aggregator_; | 124 std::unique_ptr<SurfaceAggregator> aggregator_; |
125 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; | 125 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; |
126 std::unique_ptr<DirectRenderer> renderer_; | 126 std::unique_ptr<DirectRenderer> renderer_; |
127 SoftwareRenderer* software_renderer_ = nullptr; | 127 SoftwareRenderer* software_renderer_ = nullptr; |
128 std::vector<ui::LatencyInfo> stored_latency_info_; | 128 std::vector<ui::LatencyInfo> stored_latency_info_; |
129 | 129 |
130 private: | 130 private: |
131 DISALLOW_COPY_AND_ASSIGN(Display); | 131 DISALLOW_COPY_AND_ASSIGN(Display); |
132 }; | 132 }; |
133 | 133 |
134 } // namespace cc | 134 } // namespace cc |
135 | 135 |
136 #endif // CC_SURFACES_DISPLAY_H_ | 136 #endif // CC_SURFACES_DISPLAY_H_ |
OLD | NEW |