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

Unified Diff: ash/sysui/stub_context_factory.cc

Issue 2166423002: ui::ContextFactory should not create SurfaceIdAllocators (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
Index: ash/sysui/stub_context_factory.cc
diff --git a/ash/sysui/stub_context_factory.cc b/ash/sysui/stub_context_factory.cc
index ce7af105a52e917fadc38c0145c89db77e337821..44f7512c932555195dc1bf3aeff06490c73b4a8f 100644
--- a/ash/sysui/stub_context_factory.cc
+++ b/ash/sysui/stub_context_factory.cc
@@ -71,10 +71,8 @@ cc::TaskGraphRunner* StubContextFactory::GetTaskGraphRunner() {
return task_graph_runner_.get();
}
-std::unique_ptr<cc::SurfaceIdAllocator>
-StubContextFactory::CreateSurfaceIdAllocator() {
- return base::WrapUnique(
- new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
+uint32_t StubContextFactory::AllocateSurfaceClientId() {
+ return next_surface_id_namespace_++;
}
cc::SurfaceManager* StubContextFactory::GetSurfaceManager() {

Powered by Google App Engine
This is Rietveld 408576698