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

Side by Side Diff: content/test/web_layer_tree_view_impl_for_testing.h

Issue 101573005: Revert of cc: Defer first OutputSurface creation until client is ready (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 5 #ifndef CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/trees/layer_tree_host_client.h" 9 #include "cc/trees/layer_tree_host_client.h"
10 #include "cc/trees/layer_tree_host_single_thread_client.h" 10 #include "cc/trees/layer_tree_host_single_thread_client.h"
11 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" 11 #include "third_party/WebKit/public/platform/WebLayerTreeView.h"
12 12
13 namespace cc { 13 namespace cc {
14 class LayerTreeHost; 14 class LayerTreeHost;
15 } 15 }
16 16
17 namespace blink { class WebLayer; } 17 namespace blink { class WebLayer; }
18 18
19 namespace webkit { 19 namespace webkit {
20 20
21 class WebLayerTreeViewImplForTesting 21 class WebLayerTreeViewImplForTesting
22 : public blink::WebLayerTreeView, 22 : public blink::WebLayerTreeView,
23 public cc::LayerTreeHostClient, 23 public cc::LayerTreeHostClient,
24 public cc::LayerTreeHostSingleThreadClient { 24 public cc::LayerTreeHostSingleThreadClient {
25 public: 25 public:
26 WebLayerTreeViewImplForTesting(); 26 WebLayerTreeViewImplForTesting();
27 virtual ~WebLayerTreeViewImplForTesting(); 27 virtual ~WebLayerTreeViewImplForTesting();
28 28
29 void Initialize(); 29 bool Initialize();
30 30
31 // blink::WebLayerTreeView implementation. 31 // blink::WebLayerTreeView implementation.
32 virtual void setSurfaceReady(); 32 virtual void setSurfaceReady();
33 virtual void setRootLayer(const blink::WebLayer& layer); 33 virtual void setRootLayer(const blink::WebLayer& layer);
34 virtual void clearRootLayer(); 34 virtual void clearRootLayer();
35 virtual void setViewportSize(const blink::WebSize& unused_deprecated, 35 virtual void setViewportSize(const blink::WebSize& unused_deprecated,
36 const blink::WebSize& device_viewport_size); 36 const blink::WebSize& device_viewport_size);
37 virtual blink::WebSize layoutViewportSize() const; 37 virtual blink::WebSize layoutViewportSize() const;
38 virtual blink::WebSize deviceViewportSize() const; 38 virtual blink::WebSize deviceViewportSize() const;
39 virtual void setDeviceScaleFactor(float scale_factor); 39 virtual void setDeviceScaleFactor(float scale_factor);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 private: 84 private:
85 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 85 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); 87 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting);
88 }; 88 };
89 89
90 } // namespace webkit 90 } // namespace webkit
91 91
92 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 92 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
OLDNEW
« no previous file with comments | « content/test/test_webkit_platform_support.cc ('k') | content/test/web_layer_tree_view_impl_for_testing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698