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

Unified Diff: cc/surfaces/display.h

Issue 2468633002: Replaced cc::Display::SetSurfaceId() with SetLocalFrameId() (Closed)
Patch Set: rebase and minor bug fixes Created 4 years, 1 month 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/surfaces/direct_compositor_frame_sink_unittest.cc ('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 6b32ee92df4d1dc3840d64ea13ad554181579f93..7050fff425de215eeaf1ad203a5b836999f5a42a 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -58,6 +58,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
Display(SharedBitmapManager* bitmap_manager,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
const RendererSettings& settings,
+ const FrameSinkId& frame_sink_id,
std::unique_ptr<BeginFrameSource> begin_frame_source,
std::unique_ptr<OutputSurface> output_surface,
std::unique_ptr<DisplayScheduler> scheduler,
@@ -65,13 +66,11 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
~Display() override;
- void Initialize(DisplayClient* client,
- SurfaceManager* surface_manager,
- const FrameSinkId& frame_sink_id);
+ void Initialize(DisplayClient* client, SurfaceManager* surface_manager);
// device_scale_factor is used to communicate to the external window system
// what scale this was rendered at.
- void SetSurfaceId(const SurfaceId& id, float device_scale_factor);
+ void SetLocalFrameId(const LocalFrameId& id, float device_scale_factor);
void SetVisible(bool visible);
void Resize(const gfx::Size& new_size);
void SetColorSpace(const gfx::ColorSpace& color_space);
@@ -110,7 +109,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
DisplayClient* client_ = nullptr;
SurfaceManager* surface_manager_ = nullptr;
- FrameSinkId frame_sink_id_;
+ const FrameSinkId frame_sink_id_;
SurfaceId current_surface_id_;
gfx::Size current_surface_size_;
float device_scale_factor_ = 1.f;
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698