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

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: reverted whitespace change Created 8 years 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
« no previous file with comments | « cc/layer_impl.h ('k') | cc/layer_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/values.h" 9 #include "base/values.h"
10 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
(...skipping 26 matching lines...) Expand all
37 , m_backgroundColor(0) 37 , m_backgroundColor(0)
38 , m_doubleSided(true) 38 , m_doubleSided(true)
39 , m_layerPropertyChanged(false) 39 , m_layerPropertyChanged(false)
40 , m_layerSurfacePropertyChanged(false) 40 , m_layerSurfacePropertyChanged(false)
41 , m_masksToBounds(false) 41 , m_masksToBounds(false)
42 , m_contentsOpaque(false) 42 , m_contentsOpaque(false)
43 , m_opacity(1.0) 43 , m_opacity(1.0)
44 , m_preserves3D(false) 44 , m_preserves3D(false)
45 , m_useParentBackfaceVisibility(false) 45 , m_useParentBackfaceVisibility(false)
46 , m_drawCheckerboardForMissingTiles(false) 46 , m_drawCheckerboardForMissingTiles(false)
47 , m_useLCDText(false)
48 , m_drawsContent(false) 47 , m_drawsContent(false)
49 , m_forceRenderSurface(false) 48 , m_forceRenderSurface(false)
50 , m_isContainerForFixedPositionLayers(false) 49 , m_isContainerForFixedPositionLayers(false)
51 , m_fixedToContainerLayer(false) 50 , m_fixedToContainerLayer(false)
52 , m_drawDepth(0) 51 , m_drawDepth(0)
53 #ifndef NDEBUG 52 #ifndef NDEBUG
54 , m_betweenWillDrawAndDidDraw(false) 53 , m_betweenWillDrawAndDidDraw(false)
55 #endif 54 #endif
56 , m_layerAnimationController(LayerAnimationController::create(this)) 55 , m_layerAnimationController(LayerAnimationController::create(this))
57 { 56 {
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 776
778 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) 777 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer)
779 { 778 {
780 if (!m_scrollbarAnimationController) 779 if (!m_scrollbarAnimationController)
781 m_scrollbarAnimationController = ScrollbarAnimationController::create(th is); 780 m_scrollbarAnimationController = ScrollbarAnimationController::create(th is);
782 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); 781 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer);
783 m_scrollbarAnimationController->updateScrollOffset(this); 782 m_scrollbarAnimationController->updateScrollOffset(this);
784 } 783 }
785 784
786 } // namespace cc 785 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_impl.h ('k') | cc/layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698