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

Side by Side Diff: ui/compositor/test/in_process_context_factory.cc

Issue 656263003: cc: Move GpuMemoryBufferManager interface to gpu namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build fix Created 6 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 unified diff | Download patch
« no previous file with comments | « ui/compositor/test/in_process_context_factory.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/compositor/test/in_process_context_factory.h" 5 #include "ui/compositor/test/in_process_context_factory.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "cc/surfaces/surface_id_allocator.h" 9 #include "cc/surfaces/surface_id_allocator.h"
10 #include "cc/test/pixel_test_output_surface.h" 10 #include "cc/test/pixel_test_output_surface.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 void InProcessContextFactory::RemoveCompositor(Compositor* compositor) {} 93 void InProcessContextFactory::RemoveCompositor(Compositor* compositor) {}
94 94
95 bool InProcessContextFactory::DoesCreateTestContexts() { return false; } 95 bool InProcessContextFactory::DoesCreateTestContexts() { return false; }
96 96
97 cc::SharedBitmapManager* InProcessContextFactory::GetSharedBitmapManager() { 97 cc::SharedBitmapManager* InProcessContextFactory::GetSharedBitmapManager() {
98 return &shared_bitmap_manager_; 98 return &shared_bitmap_manager_;
99 } 99 }
100 100
101 cc::GpuMemoryBufferManager* 101 gpu::GpuMemoryBufferManager*
102 InProcessContextFactory::GetGpuMemoryBufferManager() { 102 InProcessContextFactory::GetGpuMemoryBufferManager() {
103 return &gpu_memory_buffer_manager_; 103 return &gpu_memory_buffer_manager_;
104 } 104 }
105 105
106 base::MessageLoopProxy* InProcessContextFactory::GetCompositorMessageLoop() { 106 base::MessageLoopProxy* InProcessContextFactory::GetCompositorMessageLoop() {
107 if (!compositor_thread_) 107 if (!compositor_thread_)
108 return NULL; 108 return NULL;
109 return compositor_thread_->message_loop_proxy().get(); 109 return compositor_thread_->message_loop_proxy().get();
110 } 110 }
111 111
112 scoped_ptr<cc::SurfaceIdAllocator> 112 scoped_ptr<cc::SurfaceIdAllocator>
113 InProcessContextFactory::CreateSurfaceIdAllocator() { 113 InProcessContextFactory::CreateSurfaceIdAllocator() {
114 return make_scoped_ptr( 114 return make_scoped_ptr(
115 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); 115 new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
116 } 116 }
117 117
118 } // namespace ui 118 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/test/in_process_context_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698