Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: webkit/compositor_bindings/WebLayerImpl.cpp

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved needing to kick a frame logic up to RWHVA from Compositor. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« ui/compositor/compositor.cc ('K') | « webkit/compositor_bindings/WebLayerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698