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

Side by Side Diff: mandoline/ui/aura/surface_context_factory.cc

Issue 1123643007: Restore aura support from Mojo repo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 | « mandoline/ui/aura/surface_context_factory.h ('k') | mandoline/ui/aura/window_tree_host_mojo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "mandoline/ui/aura/surface_context_factory.h"
6
7 #include "cc/output/output_surface.h"
8 #include "cc/resources/shared_bitmap_manager.h"
9 #include "cc/surfaces/surface_id_allocator.h"
10 #include "components/view_manager/public/cpp/view.h"
11 #include "mojo/public/interfaces/application/shell.mojom.h"
12 #include "ui/compositor/reflector.h"
13 #include "ui/gl/gl_bindings.h"
14
15 namespace mandoline {
16 namespace {
17
18 class FakeReflector : public ui::Reflector {
19 public:
20 FakeReflector() {}
21 ~FakeReflector() override {}
22 void OnMirroringCompositorResized() override {}
23 void AddMirroringLayer(ui::Layer* layer) override {}
24 void RemoveMirroringLayer(ui::Layer* layer) override {}
25 };
26
27 }
28
29 SurfaceContextFactory::SurfaceContextFactory(mojo::Shell* shell,
30 mojo::View* view)
31 : surface_binding_(shell, view) {
32 }
33
34 SurfaceContextFactory::~SurfaceContextFactory() {
35 }
36
37 void SurfaceContextFactory::CreateOutputSurface(
38 base::WeakPtr<ui::Compositor> compositor) {
39 NOTIMPLEMENTED();
40 compositor->SetOutputSurface(surface_binding_.CreateOutputSurface());
41 }
42
43 scoped_ptr<ui::Reflector> SurfaceContextFactory::CreateReflector(
44 ui::Compositor* mirroed_compositor,
45 ui::Layer* mirroring_layer) {
46 NOTIMPLEMENTED();
47 return make_scoped_ptr(new FakeReflector);
48 }
49
50 void SurfaceContextFactory::RemoveReflector(ui::Reflector* reflector) {
51 NOTIMPLEMENTED();
52 }
53
54 scoped_refptr<cc::ContextProvider>
55 SurfaceContextFactory::SharedMainThreadContextProvider() {
56 NOTIMPLEMENTED();
57 return nullptr;
58 }
59
60 void SurfaceContextFactory::RemoveCompositor(ui::Compositor* compositor) {
61 NOTIMPLEMENTED();
62 }
63
64 bool SurfaceContextFactory::DoesCreateTestContexts() {
65 NOTIMPLEMENTED();
66 return false;
67 }
68
69 uint32 SurfaceContextFactory::GetImageTextureTarget() {
70 return GL_TEXTURE_2D;
71 }
72
73 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() {
74 NOTIMPLEMENTED();
75 return nullptr;
76 }
77
78 gpu::GpuMemoryBufferManager*
79 SurfaceContextFactory::GetGpuMemoryBufferManager() {
80 NOTIMPLEMENTED();
81 return nullptr;
82 }
83
84 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() {
85 NOTIMPLEMENTED();
86 return nullptr;
87 }
88
89 scoped_ptr<cc::SurfaceIdAllocator>
90 SurfaceContextFactory::CreateSurfaceIdAllocator() {
91 NOTIMPLEMENTED();
92 return nullptr;
93 }
94
95 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor,
96 const gfx::Size& size) {
97 NOTIMPLEMENTED();
98 }
99
100 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/ui/aura/surface_context_factory.h ('k') | mandoline/ui/aura/window_tree_host_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698