| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "config.h" | 5 #include "config.h" |
| 6 #include "WebLayerImpl.h" | 6 #include "WebLayerImpl.h" |
| 7 | 7 |
| 8 #include "SkMatrix44.h" | 8 #include "SkMatrix44.h" |
| 9 #include "WebAnimationImpl.h" | 9 #include "WebAnimationImpl.h" |
| 10 #ifdef LOG | 10 #ifdef LOG |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 { | 331 { |
| 332 ASSERT(other); | 332 ASSERT(other); |
| 333 static_cast<WebLayerImpl*>(other)->m_layer->setLayerAnimationController(m_la
yer->releaseLayerAnimationController()); | 333 static_cast<WebLayerImpl*>(other)->m_layer->setLayerAnimationController(m_la
yer->releaseLayerAnimationController()); |
| 334 } | 334 } |
| 335 | 335 |
| 336 void WebLayerImpl::setForceRenderSurface(bool forceRenderSurface) | 336 void WebLayerImpl::setForceRenderSurface(bool forceRenderSurface) |
| 337 { | 337 { |
| 338 m_layer->setForceRenderSurface(forceRenderSurface); | 338 m_layer->setForceRenderSurface(forceRenderSurface); |
| 339 } | 339 } |
| 340 | 340 |
| 341 void WebLayerImpl::setDeferUpdates(bool deferUpdates) |
| 342 { |
| 343 m_layer->setDeferUpdates(deferUpdates); |
| 344 } |
| 345 |
| 346 bool WebLayerImpl::deferUpdates() |
| 347 { |
| 348 return m_layer->deferUpdates(); |
| 349 } |
| 350 |
| 341 void WebLayerImpl::setScrollPosition(WebPoint position) | 351 void WebLayerImpl::setScrollPosition(WebPoint position) |
| 342 { | 352 { |
| 343 m_layer->setScrollPosition(convert(position)); | 353 m_layer->setScrollPosition(convert(position)); |
| 344 } | 354 } |
| 345 | 355 |
| 346 WebPoint WebLayerImpl::scrollPosition() const | 356 WebPoint WebLayerImpl::scrollPosition() const |
| 347 { | 357 { |
| 348 return WebPoint(m_layer->scrollPosition().x(), m_layer->scrollPosition().y()
); | 358 return WebPoint(m_layer->scrollPosition().x(), m_layer->scrollPosition().y()
); |
| 349 } | 359 } |
| 350 | 360 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 { | 442 { |
| 433 m_layer->setLayerScrollClient(scrollClient); | 443 m_layer->setLayerScrollClient(scrollClient); |
| 434 } | 444 } |
| 435 | 445 |
| 436 LayerChromium* WebLayerImpl::layer() const | 446 LayerChromium* WebLayerImpl::layer() const |
| 437 { | 447 { |
| 438 return m_layer.get(); | 448 return m_layer.get(); |
| 439 } | 449 } |
| 440 | 450 |
| 441 } // namespace WebKit | 451 } // namespace WebKit |
| OLD | NEW |