| 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 "cc/blink/web_layer_impl.h" | 5 #include "cc/blink/web_layer_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 } | 48 } |
| 49 | 49 |
| 50 WebLayerImpl::~WebLayerImpl() { | 50 WebLayerImpl::~WebLayerImpl() { |
| 51 layer_->SetLayerClient(nullptr); | 51 layer_->SetLayerClient(nullptr); |
| 52 } | 52 } |
| 53 | 53 |
| 54 int WebLayerImpl::id() const { | 54 int WebLayerImpl::id() const { |
| 55 return layer_->id(); | 55 return layer_->id(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 DISABLE_CFI_PERF |
| 58 void WebLayerImpl::invalidateRect(const blink::WebRect& rect) { | 59 void WebLayerImpl::invalidateRect(const blink::WebRect& rect) { |
| 59 layer_->SetNeedsDisplayRect(rect); | 60 layer_->SetNeedsDisplayRect(rect); |
| 60 } | 61 } |
| 61 | 62 |
| 62 void WebLayerImpl::invalidate() { | 63 void WebLayerImpl::invalidate() { |
| 63 layer_->SetNeedsDisplay(); | 64 layer_->SetNeedsDisplay(); |
| 64 } | 65 } |
| 65 | 66 |
| 66 void WebLayerImpl::addChild(WebLayer* child) { | 67 void WebLayerImpl::addChild(WebLayer* child) { |
| 67 layer_->AddChild(static_cast<WebLayerImpl*>(child)->layer()); | 68 layer_->AddChild(static_cast<WebLayerImpl*>(child)->layer()); |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 417 |
| 417 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { | 418 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { |
| 418 contents_opaque_is_fixed_ = fixed; | 419 contents_opaque_is_fixed_ = fixed; |
| 419 } | 420 } |
| 420 | 421 |
| 421 void WebLayerImpl::setHasWillChangeTransformHint(bool has_will_change) { | 422 void WebLayerImpl::setHasWillChangeTransformHint(bool has_will_change) { |
| 422 layer_->SetHasWillChangeTransformHint(has_will_change); | 423 layer_->SetHasWillChangeTransformHint(has_will_change); |
| 423 } | 424 } |
| 424 | 425 |
| 425 } // namespace cc_blink | 426 } // namespace cc_blink |
| OLD | NEW |