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

Side by Side Diff: ui/views/mus/surface_context_factory.cc

Issue 2136413002: Update Surface ID Terminology (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix webkit_unit_tests 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ui/views/mus/surface_context_factory.h" 5 #include "ui/views/mus/surface_context_factory.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/output/output_surface.h" 8 #include "cc/output/output_surface.h"
9 #include "cc/resources/shared_bitmap_manager.h" 9 #include "cc/resources/shared_bitmap_manager.h"
10 #include "cc/surfaces/surface_id_allocator.h" 10 #include "cc/surfaces/surface_id_allocator.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return &gpu_memory_buffer_manager_; 86 return &gpu_memory_buffer_manager_;
87 } 87 }
88 88
89 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() { 89 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() {
90 return raster_thread_helper_.task_graph_runner(); 90 return raster_thread_helper_.task_graph_runner();
91 } 91 }
92 92
93 std::unique_ptr<cc::SurfaceIdAllocator> 93 std::unique_ptr<cc::SurfaceIdAllocator>
94 SurfaceContextFactory::CreateSurfaceIdAllocator() { 94 SurfaceContextFactory::CreateSurfaceIdAllocator() {
95 return base::WrapUnique( 95 return base::WrapUnique(
96 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); 96 new cc::SurfaceIdAllocator(0 /* gpu_id */, next_surface_id_namespace_++));
97 } 97 }
98 98
99 cc::SurfaceManager* SurfaceContextFactory::GetSurfaceManager() { 99 cc::SurfaceManager* SurfaceContextFactory::GetSurfaceManager() {
100 // NOTIMPLEMENTED(); 100 // NOTIMPLEMENTED();
101 return nullptr; 101 return nullptr;
102 } 102 }
103 103
104 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, 104 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor,
105 const gfx::Size& size) { 105 const gfx::Size& size) {
106 // NOTIMPLEMENTED(); 106 // NOTIMPLEMENTED();
107 } 107 }
108 108
109 } // namespace views 109 } // namespace views
OLDNEW
« cc/surfaces/surface_sequence.h ('K') | « ui/compositor/test/in_process_context_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698