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

Side by Side Diff: ui/gfx/compositor/test_compositor.h

Issue 8360018: Revert 106606 - Use WebKit compositor in ui::Layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/compositor/layer_unittest.cc ('k') | ui/gfx/compositor/test_compositor.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_GFX_COMPOSITOR_TEST_COMPOSITOR_H_ 5 #ifndef UI_GFX_COMPOSITOR_TEST_COMPOSITOR_H_
6 #define UI_GFX_COMPOSITOR_TEST_COMPOSITOR_H_ 6 #define UI_GFX_COMPOSITOR_TEST_COMPOSITOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/gfx/compositor/compositor.h" 12 #include "ui/gfx/compositor/compositor.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 class TestCompositorDelegate; 16 class TestCompositorDelegate;
17 17
18 // Trivial Compositor implementation that creates Textures of type TestTexture. 18 // Trivial Compositor implementation that creates Textures of type TestTexture.
19 class TestCompositor : public ui::Compositor { 19 class TestCompositor : public ui::Compositor {
20 public: 20 public:
21 TestCompositor(); 21 TestCompositor();
22 virtual ~TestCompositor(); 22 virtual ~TestCompositor();
23 23
24 // ui::Compositor: 24 // ui::Compositor:
25 virtual ui::Texture* CreateTexture() OVERRIDE; 25 virtual ui::Texture* CreateTexture() OVERRIDE;
26 virtual void OnNotifyStart(bool clear) OVERRIDE; 26 virtual void OnNotifyStart(bool clear) OVERRIDE;
27 virtual void OnNotifyEnd() OVERRIDE; 27 virtual void OnNotifyEnd() OVERRIDE;
28 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; 28 virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
29 virtual void DrawTree() OVERRIDE;
30 29
31 protected: 30 protected:
32 virtual void OnWidgetSizeChanged() OVERRIDE; 31 virtual void OnWidgetSizeChanged() OVERRIDE;
33 32
34 private: 33 private:
35 scoped_ptr<TestCompositorDelegate> owned_delegate_; 34 scoped_ptr<TestCompositorDelegate> owned_delegate_;
36 35
37 DISALLOW_COPY_AND_ASSIGN(TestCompositor); 36 DISALLOW_COPY_AND_ASSIGN(TestCompositor);
38 }; 37 };
39 38
40 } // namespace ui 39 } // namespace ui
41 40
42 #endif // UI_GFX_COMPOSITOR_TEST_COMPOSITOR_H_ 41 #endif // UI_GFX_COMPOSITOR_TEST_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/layer_unittest.cc ('k') | ui/gfx/compositor/test_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698