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

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: Change m_unpinchedViewportSize and remove unnecessary >1 page scale clamping. 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 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } 445 }
446 446
447 void LayerChromium::setForceRenderSurface(bool force) 447 void LayerChromium::setForceRenderSurface(bool force)
448 { 448 {
449 if (m_forceRenderSurface == force) 449 if (m_forceRenderSurface == force)
450 return; 450 return;
451 m_forceRenderSurface = force; 451 m_forceRenderSurface = force;
452 setNeedsCommit(); 452 setNeedsCommit();
453 } 453 }
454 454
455 void LayerChromium::setImplTransform(const WebTransformationMatrix& transform)
456 {
457 if (m_implTransform == transform)
458 return;
459 m_implTransform = transform;
460 setNeedsCommit();
461 }
462
455 void LayerChromium::setDoubleSided(bool doubleSided) 463 void LayerChromium::setDoubleSided(bool doubleSided)
456 { 464 {
457 if (m_doubleSided == doubleSided) 465 if (m_doubleSided == doubleSided)
458 return; 466 return;
459 m_doubleSided = doubleSided; 467 m_doubleSided = doubleSided;
460 setNeedsCommit(); 468 setNeedsCommit();
461 } 469 }
462 470
463 void LayerChromium::setIsDrawable(bool isDrawable) 471 void LayerChromium::setIsDrawable(bool isDrawable)
464 { 472 {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 return 0; 786 return 0;
779 } 787 }
780 788
781 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*) 789 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*)
782 { 790 {
783 // Currently we don't use z-order to decide what to paint, so there's no nee d to actually sort LayerChromiums. 791 // Currently we don't use z-order to decide what to paint, so there's no nee d to actually sort LayerChromiums.
784 } 792 }
785 793
786 } 794 }
787 #endif // USE(ACCELERATED_COMPOSITING) 795 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698