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