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

Side by Side Diff: cc/layer.cc

Issue 10915313: cc: Apply the layer's initial CSS scale to the contentsScale to render text at the right resolution. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 months 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.h ('k') | cc/layer_iterator_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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 "LayerChromium.h" 7 #include "LayerChromium.h"
8 8
9 #include "CCActiveAnimation.h" 9 #include "CCActiveAnimation.h"
10 #include "CCAnimationEvents.h" 10 #include "CCAnimationEvents.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 , m_useParentBackfaceVisibility(false) 56 , m_useParentBackfaceVisibility(false)
57 , m_drawCheckerboardForMissingTiles(false) 57 , m_drawCheckerboardForMissingTiles(false)
58 , m_forceRenderSurface(false) 58 , m_forceRenderSurface(false)
59 , m_replicaLayer(0) 59 , m_replicaLayer(0)
60 , m_drawOpacity(0) 60 , m_drawOpacity(0)
61 , m_drawOpacityIsAnimating(false) 61 , m_drawOpacityIsAnimating(false)
62 , m_renderTarget(0) 62 , m_renderTarget(0)
63 , m_drawTransformIsAnimating(false) 63 , m_drawTransformIsAnimating(false)
64 , m_screenSpaceTransformIsAnimating(false) 64 , m_screenSpaceTransformIsAnimating(false)
65 , m_contentsScale(1.0) 65 , m_contentsScale(1.0)
66 , m_initialCssScale(0)
66 , m_boundsContainPageScale(false) 67 , m_boundsContainPageScale(false)
67 , m_layerAnimationDelegate(0) 68 , m_layerAnimationDelegate(0)
68 , m_layerScrollClient(0) 69 , m_layerScrollClient(0)
69 { 70 {
70 if (m_layerId < 0) { 71 if (m_layerId < 0) {
71 s_nextLayerId = 1; 72 s_nextLayerId = 1;
72 m_layerId = s_nextLayerId++; 73 m_layerId = s_nextLayerId++;
73 } 74 }
74 } 75 }
75 76
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 { 789 {
789 return 0; 790 return 0;
790 } 791 }
791 792
792 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto r<scoped_refptr<LayerChromium> >::iterator, void*) 793 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto r<scoped_refptr<LayerChromium> >::iterator, void*)
793 { 794 {
794 // Currently we don't use z-order to decide what to paint, so there's no nee d to actually sort LayerChromiums. 795 // Currently we don't use z-order to decide what to paint, so there's no nee d to actually sort LayerChromiums.
795 } 796 }
796 797
797 } 798 }
OLDNEW
« no previous file with comments | « cc/layer.h ('k') | cc/layer_iterator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698