| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 | 4 |
| 5 #include "webkit/compositor_bindings/web_compositor_support_impl.h" | 5 #include "webkit/compositor_bindings/web_compositor_support_impl.h" |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "webkit/compositor_bindings/WebLayerImpl.h" | 9 #include "webkit/compositor_bindings/WebLayerImpl.h" |
| 10 #include "webkit/compositor_bindings/WebLayerTreeViewImpl.h" | 10 #include "webkit/compositor_bindings/WebLayerTreeViewImpl.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool WebCompositorSupportImpl::isThreadingEnabled() { | 61 bool WebCompositorSupportImpl::isThreadingEnabled() { |
| 62 return WebCompositorImpl::isThreadingEnabled(); | 62 return WebCompositorImpl::isThreadingEnabled(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void WebCompositorSupportImpl::shutdown() { | 65 void WebCompositorSupportImpl::shutdown() { |
| 66 WebCompositorImpl::shutdown(); | 66 WebCompositorImpl::shutdown(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void WebCompositorSupportImpl::setPerTilePaintingEnabled(bool enabled) { | |
| 70 WebCompositorImpl::setPerTilePaintingEnabled(enabled); | |
| 71 } | |
| 72 | |
| 73 void WebCompositorSupportImpl::setPartialSwapEnabled(bool enabled) { | |
| 74 WebCompositorImpl::setPartialSwapEnabled(enabled); | |
| 75 } | |
| 76 | |
| 77 void WebCompositorSupportImpl::setAcceleratedAnimationEnabled(bool enabled) { | |
| 78 WebCompositorImpl::setAcceleratedAnimationEnabled(enabled); | |
| 79 } | |
| 80 | |
| 81 void WebCompositorSupportImpl::setPageScalePinchZoomEnabled(bool enabled) { | |
| 82 WebCompositorImpl::setPageScalePinchZoomEnabled(enabled); | |
| 83 } | |
| 84 | |
| 85 WebLayerTreeView* WebCompositorSupportImpl::createLayerTreeView( | 69 WebLayerTreeView* WebCompositorSupportImpl::createLayerTreeView( |
| 86 WebLayerTreeViewClient* client, const WebLayer& root, | 70 WebLayerTreeViewClient* client, const WebLayer& root, |
| 87 const WebLayerTreeView::Settings& settings) { | 71 const WebLayerTreeView::Settings& settings) { |
| 88 scoped_ptr<WebKit::WebLayerTreeViewImpl> layerTreeViewImpl( | 72 scoped_ptr<WebKit::WebLayerTreeViewImpl> layerTreeViewImpl( |
| 89 new WebKit::WebLayerTreeViewImpl(client)); | 73 new WebKit::WebLayerTreeViewImpl(client)); |
| 90 if (!layerTreeViewImpl->initialize(settings)) | 74 if (!layerTreeViewImpl->initialize(settings)) |
| 91 return NULL; | 75 return NULL; |
| 92 layerTreeViewImpl->setRootLayer(root); | 76 layerTreeViewImpl->setRootLayer(root); |
| 93 return layerTreeViewImpl.release(); | 77 return layerTreeViewImpl.release(); |
| 94 } | 78 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { | 131 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { |
| 148 return new WebKit::WebFloatAnimationCurveImpl(); | 132 return new WebKit::WebFloatAnimationCurveImpl(); |
| 149 } | 133 } |
| 150 | 134 |
| 151 WebTransformAnimationCurve* | 135 WebTransformAnimationCurve* |
| 152 WebCompositorSupportImpl::createTransformAnimationCurve() { | 136 WebCompositorSupportImpl::createTransformAnimationCurve() { |
| 153 return new WebKit::WebTransformAnimationCurveImpl(); | 137 return new WebKit::WebTransformAnimationCurveImpl(); |
| 154 } | 138 } |
| 155 | 139 |
| 156 } // namespace webkit | 140 } // namespace webkit |
| OLD | NEW |