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

Side by Side Diff: cc/layer_impl.cc

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase with TOT, addressed comments Created 8 years, 1 month 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 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 "cc/layer_impl.h" 5 #include "cc/layer_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "cc/debug_border_draw_quad.h" 9 #include "cc/debug_border_draw_quad.h"
10 #include "cc/geometry.h" 10 #include "cc/geometry.h"
(...skipping 27 matching lines...) Expand all
38 , m_backgroundColor(0) 38 , m_backgroundColor(0)
39 , m_doubleSided(true) 39 , m_doubleSided(true)
40 , m_layerPropertyChanged(false) 40 , m_layerPropertyChanged(false)
41 , m_layerSurfacePropertyChanged(false) 41 , m_layerSurfacePropertyChanged(false)
42 , m_masksToBounds(false) 42 , m_masksToBounds(false)
43 , m_contentsOpaque(false) 43 , m_contentsOpaque(false)
44 , m_opacity(1.0) 44 , m_opacity(1.0)
45 , m_preserves3D(false) 45 , m_preserves3D(false)
46 , m_useParentBackfaceVisibility(false) 46 , m_useParentBackfaceVisibility(false)
47 , m_drawCheckerboardForMissingTiles(false) 47 , m_drawCheckerboardForMissingTiles(false)
48 , m_useLCDText(false) 48 , m_canUseLCDText(false)
49 , m_drawsContent(false) 49 , m_drawsContent(false)
50 , m_forceRenderSurface(false) 50 , m_forceRenderSurface(false)
51 , m_isContainerForFixedPositionLayers(false) 51 , m_isContainerForFixedPositionLayers(false)
52 , m_fixedToContainerLayer(false) 52 , m_fixedToContainerLayer(false)
53 , m_renderTarget(0) 53 , m_renderTarget(0)
54 , m_drawDepth(0) 54 , m_drawDepth(0)
55 , m_drawOpacity(0) 55 , m_drawOpacity(0)
56 , m_drawOpacityIsAnimating(false) 56 , m_drawOpacityIsAnimating(false)
57 , m_screenSpaceOpacityIsAnimating(false)
57 , m_debugBorderColor(0) 58 , m_debugBorderColor(0)
58 , m_debugBorderWidth(0) 59 , m_debugBorderWidth(0)
59 , m_filter(0) 60 , m_filter(0)
60 , m_drawTransformIsAnimating(false) 61 , m_drawTransformIsAnimating(false)
61 , m_screenSpaceTransformIsAnimating(false) 62 , m_screenSpaceTransformIsAnimating(false)
62 #ifndef NDEBUG 63 #ifndef NDEBUG
63 , m_betweenWillDrawAndDidDraw(false) 64 , m_betweenWillDrawAndDidDraw(false)
64 #endif 65 #endif
65 , m_layerAnimationController(LayerAnimationController::create(this)) 66 , m_layerAnimationController(LayerAnimationController::create(this))
66 { 67 {
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 706
706 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) 707 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer)
707 { 708 {
708 if (!m_scrollbarAnimationController) 709 if (!m_scrollbarAnimationController)
709 m_scrollbarAnimationController = ScrollbarAnimationController::create(th is); 710 m_scrollbarAnimationController = ScrollbarAnimationController::create(th is);
710 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); 711 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer);
711 m_scrollbarAnimationController->updateScrollOffset(this); 712 m_scrollbarAnimationController->updateScrollOffset(this);
712 } 713 }
713 714
714 } // namespace cc 715 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_impl.h ('k') | cc/layer_impl_unittest.cc » ('j') | cc/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698