| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 } | 208 } |
| 209 | 209 |
| 210 void WebLayerImpl::setBackgroundFilters(const cc::FilterOperations& filters) { | 210 void WebLayerImpl::setBackgroundFilters(const cc::FilterOperations& filters) { |
| 211 layer_->SetBackgroundFilters(filters); | 211 layer_->SetBackgroundFilters(filters); |
| 212 } | 212 } |
| 213 | 213 |
| 214 bool WebLayerImpl::hasActiveAnimationForTesting() { | 214 bool WebLayerImpl::hasActiveAnimationForTesting() { |
| 215 return layer_->HasActiveAnimationForTesting(); | 215 return layer_->HasActiveAnimationForTesting(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 void WebLayerImpl::setForceRenderSurface(bool force_render_surface) { | |
| 219 layer_->SetForceRenderSurface(force_render_surface); | |
| 220 } | |
| 221 | |
| 222 void WebLayerImpl::setScrollPositionDouble(blink::WebDoublePoint position) { | 218 void WebLayerImpl::setScrollPositionDouble(blink::WebDoublePoint position) { |
| 223 layer_->SetScrollOffset(gfx::ScrollOffset(position.x, position.y)); | 219 layer_->SetScrollOffset(gfx::ScrollOffset(position.x, position.y)); |
| 224 } | 220 } |
| 225 | 221 |
| 226 blink::WebDoublePoint WebLayerImpl::scrollPositionDouble() const { | 222 blink::WebDoublePoint WebLayerImpl::scrollPositionDouble() const { |
| 227 return blink::WebDoublePoint(layer_->scroll_offset().x(), | 223 return blink::WebDoublePoint(layer_->scroll_offset().x(), |
| 228 layer_->scroll_offset().y()); | 224 layer_->scroll_offset().y()); |
| 229 } | 225 } |
| 230 | 226 |
| 231 void WebLayerImpl::setScrollClipLayer(WebLayer* clip_layer) { | 227 void WebLayerImpl::setScrollClipLayer(WebLayer* clip_layer) { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 | 411 |
| 416 Layer* WebLayerImpl::layer() const { | 412 Layer* WebLayerImpl::layer() const { |
| 417 return layer_.get(); | 413 return layer_.get(); |
| 418 } | 414 } |
| 419 | 415 |
| 420 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { | 416 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { |
| 421 contents_opaque_is_fixed_ = fixed; | 417 contents_opaque_is_fixed_ = fixed; |
| 422 } | 418 } |
| 423 | 419 |
| 424 } // namespace cc_blink | 420 } // namespace cc_blink |
| OLD | NEW |