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

Side by Side Diff: ash/mus/stub_context_factory.cc

Issue 1959183003: Add GetSurfaceManager to ui::ContextFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « ash/mus/stub_context_factory.h ('k') | ui/compositor/compositor.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ash/mus/stub_context_factory.h" 5 #include "ash/mus/stub_context_factory.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/output/context_provider.h" 8 #include "cc/output/context_provider.h"
9 #include "cc/raster/single_thread_task_graph_runner.h" 9 #include "cc/raster/single_thread_task_graph_runner.h"
10 #include "cc/surfaces/surface_id_allocator.h" 10 #include "cc/surfaces/surface_id_allocator.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 cc::TaskGraphRunner* StubContextFactory::GetTaskGraphRunner() { 70 cc::TaskGraphRunner* StubContextFactory::GetTaskGraphRunner() {
71 return task_graph_runner_.get(); 71 return task_graph_runner_.get();
72 } 72 }
73 73
74 std::unique_ptr<cc::SurfaceIdAllocator> 74 std::unique_ptr<cc::SurfaceIdAllocator>
75 StubContextFactory::CreateSurfaceIdAllocator() { 75 StubContextFactory::CreateSurfaceIdAllocator() {
76 return base::WrapUnique( 76 return base::WrapUnique(
77 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); 77 new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
78 } 78 }
79 79
80 cc::SurfaceManager* StubContextFactory::GetSurfaceManager() {
81 // NOTIMPLEMENTED();
82 return nullptr;
83 }
84
80 void StubContextFactory::ResizeDisplay(ui::Compositor* compositor, 85 void StubContextFactory::ResizeDisplay(ui::Compositor* compositor,
81 const gfx::Size& size) {} 86 const gfx::Size& size) {}
82 87
83 } // namespace sysui 88 } // namespace sysui
84 } // namespace ash 89 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/stub_context_factory.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698