blob: aa964012ecd1a011e07313f53da5124d50c4da0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/aura/surface_context_factory.h"
#include "cc/output/output_surface.h"
#include "cc/resources/shared_bitmap_manager.h"
#include "cc/surfaces/surface_id_allocator.h"
#include "mojo/public/interfaces/application/shell.mojom.h"
#include "mojo/services/public/cpp/view_manager/view.h"
#include "ui/compositor/reflector.h"
namespace mojo {
SurfaceContextFactory::SurfaceContextFactory(Shell* shell, View* view)
: surface_binding_(shell, view) {
}
SurfaceContextFactory::~SurfaceContextFactory() {
}
scoped_ptr<cc::OutputSurface> SurfaceContextFactory::CreateOutputSurface(
ui::Compositor* compositor,
bool software_fallback) {
return surface_binding_.CreateOutputSurface();
}
scoped_refptr<ui::Reflector> SurfaceContextFactory::CreateReflector(
ui::Compositor* mirroed_compositor,
ui::Layer* mirroring_layer) {
return new ui::Reflector();
}
void SurfaceContextFactory::RemoveReflector(
scoped_refptr<ui::Reflector> reflector) {
}
scoped_refptr<cc::ContextProvider>
SurfaceContextFactory::SharedMainThreadContextProvider() {
return nullptr;
}
void SurfaceContextFactory::RemoveCompositor(ui::Compositor* compositor) {
}
bool SurfaceContextFactory::DoesCreateTestContexts() {
return false;
}
cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() {
return nullptr;
}
cc::GpuMemoryBufferManager* SurfaceContextFactory::GetGpuMemoryBufferManager() {
return nullptr;
}
base::MessageLoopProxy* SurfaceContextFactory::GetCompositorMessageLoop() {
return nullptr;
}
scoped_ptr<cc::SurfaceIdAllocator>
SurfaceContextFactory::CreateSurfaceIdAllocator() {
return nullptr;
}
} // namespace mojo
|