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

Side by Side Diff: cc/LayerChromium.cpp

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Reduce number of prepared tiles and correct existing tests. Created 8 years, 3 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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 6
7 #if USE(ACCELERATED_COMPOSITING) 7 #if USE(ACCELERATED_COMPOSITING)
8 #include "LayerChromium.h" 8 #include "LayerChromium.h"
9 9
10 #include "CCActiveAnimation.h" 10 #include "CCActiveAnimation.h"
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 } 426 }
427 427
428 void LayerChromium::setForceRenderSurface(bool force) 428 void LayerChromium::setForceRenderSurface(bool force)
429 { 429 {
430 if (m_forceRenderSurface == force) 430 if (m_forceRenderSurface == force)
431 return; 431 return;
432 m_forceRenderSurface = force; 432 m_forceRenderSurface = force;
433 setNeedsCommit(); 433 setNeedsCommit();
434 } 434 }
435 435
436 void LayerChromium::setImplTransform(const WebTransformationMatrix& transform)
437 {
438 if (m_implTransform == transform)
439 return;
440
441 m_implTransform = transform;
442 setNeedsCommit();
443 }
444
436 void LayerChromium::setDoubleSided(bool doubleSided) 445 void LayerChromium::setDoubleSided(bool doubleSided)
437 { 446 {
438 if (m_doubleSided == doubleSided) 447 if (m_doubleSided == doubleSided)
439 return; 448 return;
440 m_doubleSided = doubleSided; 449 m_doubleSided = doubleSided;
441 setNeedsCommit(); 450 setNeedsCommit();
442 } 451 }
443 452
444 void LayerChromium::setIsDrawable(bool isDrawable) 453 void LayerChromium::setIsDrawable(bool isDrawable)
445 { 454 {
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 return Region(); 730 return Region();
722 } 731 }
723 732
724 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*) 733 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*)
725 { 734 {
726 // Currently we don't use z-order to decide what to paint, so there's no nee d to actually sort LayerChromiums. 735 // Currently we don't use z-order to decide what to paint, so there's no nee d to actually sort LayerChromiums.
727 } 736 }
728 737
729 } 738 }
730 #endif // USE(ACCELERATED_COMPOSITING) 739 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698