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

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

Issue 1808313002: Register surface namespace in BlimpUiContextFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move SurfaceManager to ContextFactory Created 4 years, 9 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 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 #ifndef ASH_MUS_STUB_CONTEXT_FACTORY_H_ 5 #ifndef ASH_MUS_STUB_CONTEXT_FACTORY_H_
6 #define ASH_MUS_STUB_CONTEXT_FACTORY_H_ 6 #define ASH_MUS_STUB_CONTEXT_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/compositor/compositor.h" 10 #include "ui/compositor/compositor.h"
(...skipping 18 matching lines...) Expand all
29 ui::Layer* mirroring_layer) override; 29 ui::Layer* mirroring_layer) override;
30 void RemoveReflector(ui::Reflector* reflector) override; 30 void RemoveReflector(ui::Reflector* reflector) override;
31 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 31 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
32 void RemoveCompositor(ui::Compositor* compositor) override; 32 void RemoveCompositor(ui::Compositor* compositor) override;
33 bool DoesCreateTestContexts() override; 33 bool DoesCreateTestContexts() override;
34 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 34 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
35 gfx::BufferUsage usage) override; 35 gfx::BufferUsage usage) override;
36 cc::SharedBitmapManager* GetSharedBitmapManager() override; 36 cc::SharedBitmapManager* GetSharedBitmapManager() override;
37 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 37 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
38 cc::TaskGraphRunner* GetTaskGraphRunner() override; 38 cc::TaskGraphRunner* GetTaskGraphRunner() override;
39 cc::SurfaceManager* GetSurfaceManager() override;
39 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 40 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
40 void ResizeDisplay(ui::Compositor* compositor, 41 void ResizeDisplay(ui::Compositor* compositor,
41 const gfx::Size& size) override; 42 const gfx::Size& size) override;
42 43
43 uint32_t next_surface_id_namespace_; 44 uint32_t next_surface_id_namespace_;
44 scoped_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_; 45 scoped_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_;
46 scoped_ptr<cc::SurfaceManager> surface_manager_;
45 47
46 DISALLOW_COPY_AND_ASSIGN(StubContextFactory); 48 DISALLOW_COPY_AND_ASSIGN(StubContextFactory);
47 }; 49 };
48 50
49 } // namespace sysui 51 } // namespace sysui
50 } // namespace ash 52 } // namespace ash
51 53
52 #endif // ASH_MUS_STUB_CONTEXT_FACTORY_H_ 54 #endif // ASH_MUS_STUB_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | ash/mus/stub_context_factory.cc » ('j') | ui/compositor/test/in_process_context_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698