forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_compositor_host.h
39 lines (27 loc) · 909 Bytes
/
test_compositor_host.h
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
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_
#define UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_
namespace cc {
class LayerTreeHost;
}
namespace gfx {
class Rect;
}
namespace ui {
class Compositor;
class ContextFactory;
class TestCompositorHost {
public:
virtual ~TestCompositorHost() {}
// Creates a new TestCompositorHost. The caller owns the returned value.
static TestCompositorHost* Create(const gfx::Rect& bounds,
ui::ContextFactory* context_factory);
// Shows the TestCompositorHost. Must only be called once.
virtual void Show() = 0;
virtual Compositor* GetCompositor() = 0;
cc::LayerTreeHost* GetLayerTreeHost();
};
} // namespace ui
#endif // UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_