| 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 #include "cc/layer_impl.h" | 7 #include "cc/layer_impl.h" |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 , m_backgroundColor(0) | 40 , m_backgroundColor(0) |
| 41 , m_doubleSided(true) | 41 , m_doubleSided(true) |
| 42 , m_layerPropertyChanged(false) | 42 , m_layerPropertyChanged(false) |
| 43 , m_layerSurfacePropertyChanged(false) | 43 , m_layerSurfacePropertyChanged(false) |
| 44 , m_masksToBounds(false) | 44 , m_masksToBounds(false) |
| 45 , m_contentsOpaque(false) | 45 , m_contentsOpaque(false) |
| 46 , m_opacity(1.0) | 46 , m_opacity(1.0) |
| 47 , m_preserves3D(false) | 47 , m_preserves3D(false) |
| 48 , m_useParentBackfaceVisibility(false) | 48 , m_useParentBackfaceVisibility(false) |
| 49 , m_drawCheckerboardForMissingTiles(false) | 49 , m_drawCheckerboardForMissingTiles(false) |
| 50 , m_useLCDText(false) | 50 , m_canUseLCDText(false) |
| 51 , m_drawsContent(false) | 51 , m_drawsContent(false) |
| 52 , m_forceRenderSurface(false) | 52 , m_forceRenderSurface(false) |
| 53 , m_isContainerForFixedPositionLayers(false) | 53 , m_isContainerForFixedPositionLayers(false) |
| 54 , m_fixedToContainerLayer(false) | 54 , m_fixedToContainerLayer(false) |
| 55 , m_renderTarget(0) | 55 , m_renderTarget(0) |
| 56 , m_drawDepth(0) | 56 , m_drawDepth(0) |
| 57 , m_drawOpacity(0) | 57 , m_drawOpacity(0) |
| 58 , m_drawOpacityIsAnimating(false) | 58 , m_drawOpacityIsAnimating(false) |
| 59 , m_screenSpaceOpacityIsAnimating(false) |
| 59 , m_debugBorderColor(0) | 60 , m_debugBorderColor(0) |
| 60 , m_debugBorderWidth(0) | 61 , m_debugBorderWidth(0) |
| 61 , m_filter(0) | 62 , m_filter(0) |
| 62 , m_drawTransformIsAnimating(false) | 63 , m_drawTransformIsAnimating(false) |
| 63 , m_screenSpaceTransformIsAnimating(false) | 64 , m_screenSpaceTransformIsAnimating(false) |
| 64 #ifndef NDEBUG | 65 #ifndef NDEBUG |
| 65 , m_betweenWillDrawAndDidDraw(false) | 66 , m_betweenWillDrawAndDidDraw(false) |
| 66 #endif | 67 #endif |
| 67 , m_layerAnimationController(LayerAnimationController::create(this)) | 68 , m_layerAnimationController(LayerAnimationController::create(this)) |
| 68 { | 69 { |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 | 702 |
| 702 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) | 703 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) |
| 703 { | 704 { |
| 704 if (!m_scrollbarAnimationController) | 705 if (!m_scrollbarAnimationController) |
| 705 m_scrollbarAnimationController = ScrollbarAnimationController::create(th
is); | 706 m_scrollbarAnimationController = ScrollbarAnimationController::create(th
is); |
| 706 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); | 707 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); |
| 707 m_scrollbarAnimationController->updateScrollOffset(this); | 708 m_scrollbarAnimationController->updateScrollOffset(this); |
| 708 } | 709 } |
| 709 | 710 |
| 710 } // namespace cc | 711 } // namespace cc |
| OLD | NEW |