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

Unified Diff: cc/surfaces/display.h

Issue 2144393003: cc: Allow TestDelegatingOutputSurface to be used for non-pixel tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index c9afdea285be352606dc54fe89a11adfa1d65705..f93237858cdcbfaa1b898005e63034525b9e2e91 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -56,11 +56,9 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
public:
// The |begin_frame_source| and |scheduler| may be null (together). In that
// case, DrawAndSwap must be called externally when needed.
- Display(SurfaceManager* manager,
- SharedBitmapManager* bitmap_manager,
+ Display(SharedBitmapManager* bitmap_manager,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
const RendererSettings& settings,
- uint32_t compositor_surface_namespace,
std::unique_ptr<BeginFrameSource> begin_frame_source,
std::unique_ptr<OutputSurface> output_surface,
std::unique_ptr<DisplayScheduler> scheduler,
@@ -68,7 +66,9 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
~Display() override;
- void Initialize(DisplayClient* client);
+ void Initialize(DisplayClient* client,
+ SurfaceManager* surface_manager,
+ uint32_t compositor_surface_namespace);
// device_scale_factor is used to communicate to the external window system
// what scale this was rendered at.
@@ -114,17 +114,20 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
enlarge_texture_amount_ = enlarge_texture_amount;
}
+ bool has_scheduler() const { return !!scheduler_; }
+
private:
void InitializeRenderer();
void UpdateRootSurfaceResourcesLocked();
+ SharedBitmapManager* const bitmap_manager_;
+ gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_;
+ const RendererSettings settings_;
+
DisplayClient* client_;
SurfaceManager* surface_manager_;
- SharedBitmapManager* bitmap_manager_;
- gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
- RendererSettings settings_;
- SurfaceId current_surface_id_;
uint32_t compositor_surface_namespace_;
+ SurfaceId current_surface_id_;
gfx::Size current_surface_size_;
float device_scale_factor_ = 1.f;
gfx::ColorSpace device_color_space_;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698