| 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 "CCLayerImpl.h" | 9 #include "CCLayerImpl.h" |
| 10 | 10 |
| 11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 12 #include "CCDebugBorderDrawQuad.h" | 12 #include "CCDebugBorderDrawQuad.h" |
| 13 #include "CCLayerSorter.h" | 13 #include "CCLayerSorter.h" |
| 14 #include "CCMathUtil.h" | 14 #include "CCMathUtil.h" |
| 15 #include "CCProxy.h" | 15 #include "CCProxy.h" |
| 16 #include "CCQuadSink.h" | 16 #include "CCQuadSink.h" |
| 17 #include "CCScrollbarAnimationController.h" | 17 #include "CCScrollbarAnimationController.h" |
| 18 #include "TraceEvent.h" | 18 #include "TraceEvent.h" |
| 19 | 19 |
| 20 using WebKit::WebTransformationMatrix; | 20 using WebKit::WebTransformationMatrix; |
| 21 | 21 |
| 22 namespace WebCore { | 22 namespace cc { |
| 23 | 23 |
| 24 CCLayerImpl::CCLayerImpl(int id) | 24 CCLayerImpl::CCLayerImpl(int id) |
| 25 : m_parent(0) | 25 : m_parent(0) |
| 26 , m_maskLayerId(-1) | 26 , m_maskLayerId(-1) |
| 27 , m_replicaLayerId(-1) | 27 , m_replicaLayerId(-1) |
| 28 , m_layerId(id) | 28 , m_layerId(id) |
| 29 , m_layerTreeHostImpl(0) | 29 , m_layerTreeHostImpl(0) |
| 30 , m_anchorPoint(0.5, 0.5) | 30 , m_anchorPoint(0.5, 0.5) |
| 31 , m_anchorPointZ(0) | 31 , m_anchorPointZ(0) |
| 32 , m_scrollable(false) | 32 , m_scrollable(false) |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 if (!m_scrollbarAnimationController) | 619 if (!m_scrollbarAnimationController) |
| 620 m_scrollbarAnimationController = CCScrollbarAnimationController::create(
this); | 620 m_scrollbarAnimationController = CCScrollbarAnimationController::create(
this); |
| 621 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); | 621 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); |
| 622 m_scrollbarAnimationController->updateScrollOffset(this); | 622 m_scrollbarAnimationController->updateScrollOffset(this); |
| 623 } | 623 } |
| 624 | 624 |
| 625 } | 625 } |
| 626 | 626 |
| 627 | 627 |
| 628 #endif // USE(ACCELERATED_COMPOSITING) | 628 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |