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

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

Issue 1402213002: Moves mandoline/ui/aura to ui/views/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable presubmit Created 5 years, 2 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 | « ui/views/mus/surface_binding.cc ('k') | ui/views/mus/surface_context_factory.cc » ('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 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 #ifndef MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ 5 #ifndef UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
6 #define MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ 6 #define UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
7 7
8 #include "components/mus/gles2/mojo_gpu_memory_buffer_manager.h" 8 #include "components/mus/gles2/mojo_gpu_memory_buffer_manager.h"
9 #include "components/mus/gles2/raster_thread_helper.h" 9 #include "components/mus/gles2/raster_thread_helper.h"
10 #include "mandoline/ui/aura/surface_binding.h"
11 #include "ui/compositor/compositor.h" 10 #include "ui/compositor/compositor.h"
11 #include "ui/views/mus/surface_binding.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 class Shell; 14 class Shell;
15 } 15 }
16 16
17 namespace mus { 17 namespace mus {
18 class View; 18 class View;
19 } 19 }
20 20
21 namespace mandoline { 21 namespace views {
22 22
23 class SurfaceContextFactory : public ui::ContextFactory { 23 class SurfaceContextFactory : public ui::ContextFactory {
24 public: 24 public:
25 SurfaceContextFactory(mojo::Shell* shell, mus::View* view); 25 SurfaceContextFactory(mojo::Shell* shell, mus::View* view);
26 ~SurfaceContextFactory() override; 26 ~SurfaceContextFactory() override;
27 27
28 private: 28 private:
29 // ContextFactory: 29 // ContextFactory:
30 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override; 30 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override;
31 scoped_ptr<ui::Reflector> CreateReflector( 31 scoped_ptr<ui::Reflector> CreateReflector(
(...skipping 13 matching lines...) Expand all
45 const gfx::Size& size) override; 45 const gfx::Size& size) override;
46 46
47 SurfaceBinding surface_binding_; 47 SurfaceBinding surface_binding_;
48 uint32_t next_surface_id_namespace_; 48 uint32_t next_surface_id_namespace_;
49 gles2::RasterThreadHelper raster_thread_helper_; 49 gles2::RasterThreadHelper raster_thread_helper_;
50 mus::MojoGpuMemoryBufferManager gpu_memory_buffer_manager_; 50 mus::MojoGpuMemoryBufferManager gpu_memory_buffer_manager_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory); 52 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
53 }; 53 };
54 54
55 } // namespace mandoline 55 } // namespace views
56 56
57 #endif // MANDOLINE_UI_AURA_SURFACE_CONTEXT_FACTORY_H_ 57 #endif // UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/views/mus/surface_binding.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698