OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |