| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "WebLayerTreeViewImpl.h" | 6 #include "web_layer_tree_view_impl.h" |
| 7 | 7 |
| 8 #include "WebLayerImpl.h" | |
| 9 #include "WebToCCInputHandlerAdapter.h" | |
| 10 #include "cc/font_atlas.h" | 8 #include "cc/font_atlas.h" |
| 11 #include "cc/input_handler.h" | 9 #include "cc/input_handler.h" |
| 12 #include "cc/layer.h" | 10 #include "cc/layer.h" |
| 13 #include "cc/layer_tree_host.h" | 11 #include "cc/layer_tree_host.h" |
| 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandler.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandler.h" |
| 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
| 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeViewCli
ent.h" |
| 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
| 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeViewCli
ent.h" | |
| 19 #include "third_party/WebKit/Source/Platform/chromium/public/WebRenderingStats.h
" | 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebRenderingStats.h
" |
| 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| 21 #include "webcore_convert.h" | 19 #include "webcore_convert.h" |
| 20 #include "web_layer_impl.h" |
| 21 #include "web_to_ccinput_handler_adapter.h" |
| 22 | 22 |
| 23 using namespace cc; | 23 using namespace cc; |
| 24 | 24 |
| 25 namespace WebKit { | 25 namespace WebKit { |
| 26 | 26 |
| 27 WebLayerTreeView* WebLayerTreeView::create(WebLayerTreeViewClient* client, const
WebLayer& root, const WebLayerTreeView::Settings& settings) | 27 WebLayerTreeView* WebLayerTreeView::create(WebLayerTreeViewClient* client, const
WebLayer& root, const WebLayerTreeView::Settings& settings) |
| 28 { | 28 { |
| 29 scoped_ptr<WebLayerTreeViewImpl> layerTreeViewImpl(new WebLayerTreeViewImpl(
client)); | 29 scoped_ptr<WebLayerTreeViewImpl> layerTreeViewImpl(new WebLayerTreeViewImpl(
client)); |
| 30 if (!layerTreeViewImpl->initialize(settings)) | 30 if (!layerTreeViewImpl->initialize(settings)) |
| 31 return 0; | 31 return 0; |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 { | 258 { |
| 259 m_client->didCompleteSwapBuffers(); | 259 m_client->didCompleteSwapBuffers(); |
| 260 } | 260 } |
| 261 | 261 |
| 262 void WebLayerTreeViewImpl::scheduleComposite() | 262 void WebLayerTreeViewImpl::scheduleComposite() |
| 263 { | 263 { |
| 264 m_client->scheduleComposite(); | 264 m_client->scheduleComposite(); |
| 265 } | 265 } |
| 266 | 266 |
| 267 } // namespace WebKit | 267 } // namespace WebKit |
| OLD | NEW |