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

Side by Side Diff: cc/LayerChromium.cpp

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: 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
« cc/CCLayerTreeHostCommon.cpp ('K') | « cc/LayerChromium.h ('k') | no next file » | 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 #if USE(ACCELERATED_COMPOSITING) 7 #if USE(ACCELERATED_COMPOSITING)
8 #include "LayerChromium.h" 8 #include "LayerChromium.h"
9 9
10 #include "CCActiveAnimation.h" 10 #include "CCActiveAnimation.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 , m_useParentBackfaceVisibility(false) 57 , m_useParentBackfaceVisibility(false)
58 , m_drawCheckerboardForMissingTiles(false) 58 , m_drawCheckerboardForMissingTiles(false)
59 , m_forceRenderSurface(false) 59 , m_forceRenderSurface(false)
60 , m_replicaLayer(0) 60 , m_replicaLayer(0)
61 , m_drawOpacity(0) 61 , m_drawOpacity(0)
62 , m_drawOpacityIsAnimating(false) 62 , m_drawOpacityIsAnimating(false)
63 , m_renderTarget(0) 63 , m_renderTarget(0)
64 , m_drawTransformIsAnimating(false) 64 , m_drawTransformIsAnimating(false)
65 , m_screenSpaceTransformIsAnimating(false) 65 , m_screenSpaceTransformIsAnimating(false)
66 , m_contentsScale(1.0) 66 , m_contentsScale(1.0)
67 , m_initialCssScale(0)
67 , m_boundsContainPageScale(false) 68 , m_boundsContainPageScale(false)
68 , m_layerAnimationDelegate(0) 69 , m_layerAnimationDelegate(0)
69 , m_layerScrollClient(0) 70 , m_layerScrollClient(0)
70 { 71 {
71 turnOffVerifier(); // In the component build we don't have WTF threading ini tialized in this DLL so the thread verifier explodes. 72 turnOffVerifier(); // In the component build we don't have WTF threading ini tialized in this DLL so the thread verifier explodes.
72 if (m_layerId < 0) { 73 if (m_layerId < 0) {
73 s_nextLayerId = 1; 74 s_nextLayerId = 1;
74 m_layerId = s_nextLayerId++; 75 m_layerId = s_nextLayerId++;
75 } 76 }
76 } 77 }
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 return 0; 779 return 0;
779 } 780 }
780 781
781 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*) 782 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*)
782 { 783 {
783 // Currently we don't use z-order to decide what to paint, so there's no nee d to actually sort LayerChromiums. 784 // Currently we don't use z-order to decide what to paint, so there's no nee d to actually sort LayerChromiums.
784 } 785 }
785 786
786 } 787 }
787 #endif // USE(ACCELERATED_COMPOSITING) 788 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« cc/CCLayerTreeHostCommon.cpp ('K') | « cc/LayerChromium.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698