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

Side by Side Diff: cc/test/fake_layer_tree_host_client.h

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 Created 8 years 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 | « cc/test/animation_test_common.cc ('k') | cc/test/fake_layer_tree_host_client.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ 4 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_
5 #define CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ 5 #define CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "cc/font_atlas.h" 8 #include "cc/font_atlas.h"
9 #include "cc/input_handler.h" 9 #include "cc/input_handler.h"
10 #include "cc/layer_tree_host.h" 10 #include "cc/layer_tree_host.h"
11 #include "cc/test/compositor_fake_web_graphics_context_3d.h" 11 #include "cc/test/compositor_fake_web_graphics_context_3d.h"
12 #include "cc/test/fake_web_compositor_output_surface.h" 12 #include "cc/test/fake_output_surface.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class FakeLayerImplTreeHostClient : public LayerTreeHostClient { 16 class FakeLayerImplTreeHostClient : public LayerTreeHostClient {
17 public: 17 public:
18 FakeLayerImplTreeHostClient(bool useSoftwareRendering = false) 18 FakeLayerImplTreeHostClient(bool useSoftwareRendering = false)
19 : m_useSoftwareRendering(useSoftwareRendering) 19 : m_useSoftwareRendering(useSoftwareRendering)
20 { 20 {
21 } 21 }
22 22
23 virtual void willBeginFrame() OVERRIDE { } 23 virtual void willBeginFrame() OVERRIDE { }
24 virtual void didBeginFrame() OVERRIDE { } 24 virtual void didBeginFrame() OVERRIDE { }
25 virtual void animate(double monotonicFrameBeginTime) OVERRIDE { } 25 virtual void animate(double monotonicFrameBeginTime) OVERRIDE { }
26 virtual void layout() OVERRIDE { } 26 virtual void layout() OVERRIDE { }
27 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) OVERRIDE { } 27 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) OVERRIDE { }
28 28
29 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> createOutputSurface() OVERRIDE; 29 virtual scoped_ptr<OutputSurface> createOutputSurface() OVERRIDE;
30 virtual void didRecreateOutputSurface(bool success) OVERRIDE { } 30 virtual void didRecreateOutputSurface(bool success) OVERRIDE { }
31 virtual scoped_ptr<InputHandler> createInputHandler() OVERRIDE; 31 virtual scoped_ptr<InputHandler> createInputHandler() OVERRIDE;
32 virtual void willCommit() OVERRIDE { } 32 virtual void willCommit() OVERRIDE { }
33 virtual void didCommit() OVERRIDE { } 33 virtual void didCommit() OVERRIDE { }
34 virtual void didCommitAndDrawFrame() OVERRIDE { } 34 virtual void didCommitAndDrawFrame() OVERRIDE { }
35 virtual void didCompleteSwapBuffers() OVERRIDE { } 35 virtual void didCompleteSwapBuffers() OVERRIDE { }
36 36
37 // Used only in the single-threaded path. 37 // Used only in the single-threaded path.
38 virtual void scheduleComposite() OVERRIDE { } 38 virtual void scheduleComposite() OVERRIDE { }
39 39
40 virtual scoped_ptr<FontAtlas> createFontAtlas() OVERRIDE; 40 virtual scoped_ptr<FontAtlas> createFontAtlas() OVERRIDE;
41 41
42 private: 42 private:
43 bool m_useSoftwareRendering; 43 bool m_useSoftwareRendering;
44 }; 44 };
45 45
46 } 46 }
47 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ 47 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/animation_test_common.cc ('k') | cc/test/fake_layer_tree_host_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698