| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/renderer/compositor_bindings/web_layer_impl.h" | 5 #include "content/renderer/compositor_bindings/web_layer_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event_impl.h" | 8 #include "base/debug/trace_event_impl.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 bool WebLayerImpl::drawsContent() const { | 206 bool WebLayerImpl::drawsContent() const { |
| 207 return layer_->DrawsContent(); | 207 return layer_->DrawsContent(); |
| 208 } | 208 } |
| 209 | 209 |
| 210 void WebLayerImpl::setShouldFlattenTransform(bool flatten) { | 210 void WebLayerImpl::setShouldFlattenTransform(bool flatten) { |
| 211 layer_->SetShouldFlattenTransform(flatten); | 211 layer_->SetShouldFlattenTransform(flatten); |
| 212 } | 212 } |
| 213 | 213 |
| 214 void WebLayerImpl::setRenderingContext(int context) { | 214 void WebLayerImpl::setRenderingContext(int context) { |
| 215 layer_->SetIs3dSorted(context != 0); | 215 layer_->Set3dSortingContextId(context); |
| 216 } | 216 } |
| 217 | 217 |
| 218 void WebLayerImpl::setUseParentBackfaceVisibility( | 218 void WebLayerImpl::setUseParentBackfaceVisibility( |
| 219 bool use_parent_backface_visibility) { | 219 bool use_parent_backface_visibility) { |
| 220 layer_->set_use_parent_backface_visibility(use_parent_backface_visibility); | 220 layer_->set_use_parent_backface_visibility(use_parent_backface_visibility); |
| 221 } | 221 } |
| 222 | 222 |
| 223 void WebLayerImpl::setBackgroundColor(WebColor color) { | 223 void WebLayerImpl::setBackgroundColor(WebColor color) { |
| 224 layer_->SetBackgroundColor(color); | 224 layer_->SetBackgroundColor(color); |
| 225 } | 225 } |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 clip_parent = static_cast<WebLayerImpl*>(parent)->layer(); | 480 clip_parent = static_cast<WebLayerImpl*>(parent)->layer(); |
| 481 layer_->SetClipParent(clip_parent); | 481 layer_->SetClipParent(clip_parent); |
| 482 } | 482 } |
| 483 | 483 |
| 484 Layer* WebLayerImpl::layer() const { | 484 Layer* WebLayerImpl::layer() const { |
| 485 return layer_.get(); | 485 return layer_.get(); |
| 486 } | 486 } |
| 487 | 487 |
| 488 } // namespace content | 488 } // namespace content |
| 489 | 489 |
| OLD | NEW |