blob: 311a9239b6c27ed4e1a07712803aafa3109c74d4 (
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
|
// Copyright (c) 2011 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 "ui/gfx/compositor/test_compositor.h"
#include "ui/gfx/compositor/test_texture.h"
namespace ui {
class TestCompositorDelegate : public ui::CompositorDelegate {
public:
TestCompositorDelegate() {}
virtual ~TestCompositorDelegate() {}
virtual void ScheduleDraw() OVERRIDE {}
private:
DISALLOW_COPY_AND_ASSIGN(TestCompositorDelegate);
};
TestCompositor::TestCompositor()
: Compositor(new TestCompositorDelegate, gfx::Size(100, 100)) {
owned_delegate_.reset(static_cast<TestCompositorDelegate*>(delegate()));
}
TestCompositor::~TestCompositor() {
}
ui::Texture* TestCompositor::CreateTexture() {
return new TestTexture();
}
void TestCompositor::OnNotifyStart(bool clear) {
}
void TestCompositor::OnNotifyEnd() {
}
void TestCompositor::Blur(const gfx::Rect& bounds) {
}
void TestCompositor::OnWidgetSizeChanged() {
}
} // namespace ui
|