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

Side by Side Diff: webkit/compositor_bindings/web_compositor_support_impl.cc

Issue 11186039: Move CC switches to cc/switches.h. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed nits and made ui/ depend on ui/gfx/ Created 8 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
OLDNEW
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
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
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
OLDNEW
« ui/DEPS ('K') | « webkit/compositor_bindings/web_compositor_support_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698