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

Side by Side Diff: cc/surfaces/display.h

Issue 2128113002: Use a cc::Display for WebView resourceless software draws. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaywebview: mojom Created 4 years, 5 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/software_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 21 matching lines...) Expand all
32 32
33 namespace cc { 33 namespace cc {
34 34
35 class BeginFrameSource; 35 class BeginFrameSource;
36 class DirectRenderer; 36 class DirectRenderer;
37 class DisplayClient; 37 class DisplayClient;
38 class OutputSurface; 38 class OutputSurface;
39 class RendererSettings; 39 class RendererSettings;
40 class ResourceProvider; 40 class ResourceProvider;
41 class SharedBitmapManager; 41 class SharedBitmapManager;
42 class SoftwareRenderer;
42 class Surface; 43 class Surface;
43 class SurfaceAggregator; 44 class SurfaceAggregator;
44 class SurfaceIdAllocator; 45 class SurfaceIdAllocator;
45 class SurfaceFactory; 46 class SurfaceFactory;
46 class TextureMailboxDeleter; 47 class TextureMailboxDeleter;
47 48
48 // A Display produces a surface that can be used to draw to a physical display 49 // A Display produces a surface that can be used to draw to a physical display
49 // (OutputSurface). The client is responsible for creating and sizing the 50 // (OutputSurface). The client is responsible for creating and sizing the
50 // surface IDs used to draw into the display and deciding when to draw. 51 // surface IDs used to draw into the display and deciding when to draw.
51 class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient, 52 class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 136
136 // The begin_frame_source_ is often known by the output_surface_ and 137 // The begin_frame_source_ is often known by the output_surface_ and
137 // the scheduler_. 138 // the scheduler_.
138 std::unique_ptr<BeginFrameSource> begin_frame_source_; 139 std::unique_ptr<BeginFrameSource> begin_frame_source_;
139 std::unique_ptr<OutputSurface> output_surface_; 140 std::unique_ptr<OutputSurface> output_surface_;
140 std::unique_ptr<DisplayScheduler> scheduler_; 141 std::unique_ptr<DisplayScheduler> scheduler_;
141 std::unique_ptr<ResourceProvider> resource_provider_; 142 std::unique_ptr<ResourceProvider> resource_provider_;
142 std::unique_ptr<SurfaceAggregator> aggregator_; 143 std::unique_ptr<SurfaceAggregator> aggregator_;
143 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 144 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
144 std::unique_ptr<DirectRenderer> renderer_; 145 std::unique_ptr<DirectRenderer> renderer_;
146 SoftwareRenderer* software_renderer_ = nullptr;
145 std::vector<ui::LatencyInfo> stored_latency_info_; 147 std::vector<ui::LatencyInfo> stored_latency_info_;
146 148
147 private: 149 private:
148 DISALLOW_COPY_AND_ASSIGN(Display); 150 DISALLOW_COPY_AND_ASSIGN(Display);
149 }; 151 };
150 152
151 } // namespace cc 153 } // namespace cc
152 154
153 #endif // CC_SURFACES_DISPLAY_H_ 155 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/output/software_renderer_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698