| 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 | 6 |
| 7 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
| 8 | 8 |
| 9 #include "TiledLayerChromium.h" | 9 #include "TiledLayerChromium.h" |
| 10 | 10 |
| 11 #include "CCLayerImpl.h" | 11 #include "CCLayerImpl.h" |
| 12 #include "CCLayerTreeHost.h" | 12 #include "CCLayerTreeHost.h" |
| 13 #include "CCOverdrawMetrics.h" | 13 #include "CCOverdrawMetrics.h" |
| 14 #include "CCTextureUpdateQueue.h" | 14 #include "CCTextureUpdateQueue.h" |
| 15 #include "CCTiledLayerImpl.h" | 15 #include "CCTiledLayerImpl.h" |
| 16 #include "GraphicsContext3D.h" | 16 #include "GraphicsContext3D.h" |
| 17 #include "Region.h" | 17 #include "Region.h" |
| 18 #include "TextStream.h" | |
| 19 #include <wtf/CurrentTime.h> | 18 #include <wtf/CurrentTime.h> |
| 20 #include <wtf/MathExtras.h> | 19 #include <wtf/MathExtras.h> |
| 21 | 20 |
| 22 using namespace std; | 21 using namespace std; |
| 23 using WebKit::WebTransformationMatrix; | 22 using WebKit::WebTransformationMatrix; |
| 24 | 23 |
| 25 namespace WebCore { | 24 namespace WebCore { |
| 26 | 25 |
| 27 class UpdatableTile : public CCLayerTilingData::Tile { | 26 class UpdatableTile : public CCLayerTilingData::Tile { |
| 28 WTF_MAKE_NONCOPYABLE(UpdatableTile); | 27 WTF_MAKE_NONCOPYABLE(UpdatableTile); |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 prepaintRect.inflateX(m_tiler->tileSize().width()); | 781 prepaintRect.inflateX(m_tiler->tileSize().width()); |
| 783 prepaintRect.inflateY(m_tiler->tileSize().height() * 2); | 782 prepaintRect.inflateY(m_tiler->tileSize().height() * 2); |
| 784 IntRect contentRect(IntPoint::zero(), contentBounds()); | 783 IntRect contentRect(IntPoint::zero(), contentBounds()); |
| 785 prepaintRect.intersect(contentRect); | 784 prepaintRect.intersect(contentRect); |
| 786 | 785 |
| 787 return prepaintRect; | 786 return prepaintRect; |
| 788 } | 787 } |
| 789 | 788 |
| 790 } | 789 } |
| 791 #endif // USE(ACCELERATED_COMPOSITING) | 790 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |