summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-04 14:59:49 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-04 14:59:49 +0000
commitf46e9572a8bbd9e0746bda6097f5b90be94e02f0 (patch)
tree2aa5d66c1d2792dab4b05d8149558ffbdd50cb62 /webkit
parent4ee9830383402891f8bfe359cbe6e854c2550699 (diff)
downloadchromium_src-f46e9572a8bbd9e0746bda6097f5b90be94e02f0.zip
chromium_src-f46e9572a8bbd9e0746bda6097f5b90be94e02f0.tar.gz
chromium_src-f46e9572a8bbd9e0746bda6097f5b90be94e02f0.tar.bz2
Add stubs for setRenderingContext and setShouldFlattenTransform
Landing this in advance of https://codereview.chromium.org/98373011/ will allow the new API functions being added to WebLayer to be pure virtual. The real implementation of these functions is coming in https://codereview.chromium.org/147833003/ R=jamesr@chromium.org BUG=322216,338980 Review URL: https://codereview.chromium.org/145973018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/renderer/compositor_bindings/web_layer_impl.cc4
-rw-r--r--webkit/renderer/compositor_bindings/web_layer_impl.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/webkit/renderer/compositor_bindings/web_layer_impl.cc b/webkit/renderer/compositor_bindings/web_layer_impl.cc
index 1265198..4ecf019 100644
--- a/webkit/renderer/compositor_bindings/web_layer_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_layer_impl.cc
@@ -192,6 +192,10 @@ void WebLayerImpl::setPreserves3D(bool preserve3D) {
layer_->SetPreserves3d(preserve3D);
}
+void WebLayerImpl::setShouldFlattenTransform(bool flatten) { }
+
+void WebLayerImpl::setRenderingContext(int context) { }
+
void WebLayerImpl::setUseParentBackfaceVisibility(
bool use_parent_backface_visibility) {
layer_->set_use_parent_backface_visibility(use_parent_backface_visibility);
diff --git a/webkit/renderer/compositor_bindings/web_layer_impl.h b/webkit/renderer/compositor_bindings/web_layer_impl.h
index c4c34ef..c730620 100644
--- a/webkit/renderer/compositor_bindings/web_layer_impl.h
+++ b/webkit/renderer/compositor_bindings/web_layer_impl.h
@@ -92,6 +92,8 @@ class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
virtual void setDrawsContent(bool draws_content);
virtual bool drawsContent() const;
virtual void setPreserves3D(bool preserves_3d);
+ virtual void setShouldFlattenTransform(bool flatten);
+ virtual void setRenderingContext(int context);
virtual void setUseParentBackfaceVisibility(bool visible);
virtual void setBackgroundColor(blink::WebColor color);
virtual blink::WebColor backgroundColor() const;