| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 } | 201 } |
| 202 | 202 |
| 203 WebColor WebLayerImpl::backgroundColor() const { | 203 WebColor WebLayerImpl::backgroundColor() const { |
| 204 return layer_->background_color(); | 204 return layer_->background_color(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 void WebLayerImpl::setFilters(const cc::FilterOperations& filters) { | 207 void WebLayerImpl::setFilters(const cc::FilterOperations& filters) { |
| 208 layer_->SetFilters(filters); | 208 layer_->SetFilters(filters); |
| 209 } | 209 } |
| 210 | 210 |
| 211 void WebLayerImpl::setFiltersOrigin(const blink::WebFloatPoint& origin) { |
| 212 layer_->SetFiltersOrigin(origin); |
| 213 } |
| 214 |
| 211 void WebLayerImpl::setBackgroundFilters(const cc::FilterOperations& filters) { | 215 void WebLayerImpl::setBackgroundFilters(const cc::FilterOperations& filters) { |
| 212 layer_->SetBackgroundFilters(filters); | 216 layer_->SetBackgroundFilters(filters); |
| 213 } | 217 } |
| 214 | 218 |
| 215 bool WebLayerImpl::hasActiveAnimationForTesting() { | 219 bool WebLayerImpl::hasActiveAnimationForTesting() { |
| 216 return layer_->HasActiveAnimationForTesting(); | 220 return layer_->HasActiveAnimationForTesting(); |
| 217 } | 221 } |
| 218 | 222 |
| 219 void WebLayerImpl::setScrollPositionDouble(blink::WebDoublePoint position) { | 223 void WebLayerImpl::setScrollPositionDouble(blink::WebDoublePoint position) { |
| 220 layer_->SetScrollOffset(gfx::ScrollOffset(position.x, position.y)); | 224 layer_->SetScrollOffset(gfx::ScrollOffset(position.x, position.y)); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 420 |
| 417 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { | 421 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { |
| 418 contents_opaque_is_fixed_ = fixed; | 422 contents_opaque_is_fixed_ = fixed; |
| 419 } | 423 } |
| 420 | 424 |
| 421 void WebLayerImpl::setHasWillChangeTransformHint(bool has_will_change) { | 425 void WebLayerImpl::setHasWillChangeTransformHint(bool has_will_change) { |
| 422 layer_->SetHasWillChangeTransformHint(has_will_change); | 426 layer_->SetHasWillChangeTransformHint(has_will_change); |
| 423 } | 427 } |
| 424 | 428 |
| 425 } // namespace cc_blink | 429 } // namespace cc_blink |
| OLD | NEW |