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

Unified Diff: cc/test/test_compositor_frame_sink.cc

Issue 2708153005: Rename SurfaceIdAllocator to LocalSurfaceIdAllocator (Closed)
Patch Set: Delete useless include Created 3 years, 10 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/test/test_compositor_frame_sink.h ('k') | components/exo/surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_compositor_frame_sink.cc
diff --git a/cc/test/test_compositor_frame_sink.cc b/cc/test/test_compositor_frame_sink.cc
index 12869c7f1d7d0cfd065274004ed6853c4c6bbe22..e07ada5bde2efb3ac16da5d2d84da6af3a1b1f96 100644
--- a/cc/test/test_compositor_frame_sink.cc
+++ b/cc/test/test_compositor_frame_sink.cc
@@ -37,7 +37,7 @@ TestCompositorFrameSink::TestCompositorFrameSink(
task_runner_(std::move(task_runner)),
frame_sink_id_(kCompositorFrameSinkId),
surface_manager_(new SurfaceManager),
- surface_id_allocator_(new SurfaceIdAllocator()),
+ local_surface_id_allocator_(new LocalSurfaceIdAllocator()),
surface_factory_(
new SurfaceFactory(frame_sink_id_, surface_manager_.get(), this)),
weak_ptr_factory_(this) {
@@ -118,7 +118,7 @@ void TestCompositorFrameSink::DetachFromClient() {
bound_ = false;
}
surface_factory_ = nullptr;
- surface_id_allocator_ = nullptr;
+ local_surface_id_allocator_ = nullptr;
surface_manager_ = nullptr;
test_client_ = nullptr;
CompositorFrameSink::DetachFromClient();
@@ -128,7 +128,7 @@ void TestCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
test_client_->DisplayReceivedCompositorFrame(frame);
if (!delegated_local_surface_id_.is_valid()) {
- delegated_local_surface_id_ = surface_id_allocator_->GenerateId();
+ delegated_local_surface_id_ = local_surface_id_allocator_->GenerateId();
}
display_->SetLocalSurfaceId(delegated_local_surface_id_,
frame.metadata.device_scale_factor);
« no previous file with comments | « cc/test/test_compositor_frame_sink.h ('k') | components/exo/surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698