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

Side by Side Diff: cc/layer_impl.h

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: fixed unit tests 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 #ifndef CC_LAYER_IMPL_H_ 5 #ifndef CC_LAYER_IMPL_H_
6 #define CC_LAYER_IMPL_H_ 6 #define CC_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "Region.h" 10 #include "Region.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 void setFixedToContainerLayer(bool fixedToContainerLayer = true) { m_fixedTo ContainerLayer = fixedToContainerLayer;} 133 void setFixedToContainerLayer(bool fixedToContainerLayer = true) { m_fixedTo ContainerLayer = fixedToContainerLayer;}
134 bool fixedToContainerLayer() const { return m_fixedToContainerLayer; } 134 bool fixedToContainerLayer() const { return m_fixedToContainerLayer; }
135 135
136 void setPreserves3D(bool); 136 void setPreserves3D(bool);
137 bool preserves3D() const { return m_preserves3D; } 137 bool preserves3D() const { return m_preserves3D; }
138 138
139 void setUseParentBackfaceVisibility(bool useParentBackfaceVisibility) { m_us eParentBackfaceVisibility = useParentBackfaceVisibility; } 139 void setUseParentBackfaceVisibility(bool useParentBackfaceVisibility) { m_us eParentBackfaceVisibility = useParentBackfaceVisibility; }
140 bool useParentBackfaceVisibility() const { return m_useParentBackfaceVisibil ity; } 140 bool useParentBackfaceVisibility() const { return m_useParentBackfaceVisibil ity; }
141 141
142 void setUseLCDText(bool useLCDText) { m_useLCDText = useLCDText; } 142 void setCanUseLCDText(bool useLCDText) { m_canUseLCDText = useLCDText; }
143 bool useLCDText() const { return m_useLCDText; } 143 bool useCanLCDText() const { return m_canUseLCDText; }
144 144
145 void setSublayerTransform(const WebKit::WebTransformationMatrix&); 145 void setSublayerTransform(const WebKit::WebTransformationMatrix&);
146 const WebKit::WebTransformationMatrix& sublayerTransform() const { return m_ sublayerTransform; } 146 const WebKit::WebTransformationMatrix& sublayerTransform() const { return m_ sublayerTransform; }
147 147
148 // Debug layer border - visual effect only, do not change geometry/clipping/ etc. 148 // Debug layer border - visual effect only, do not change geometry/clipping/ etc.
149 void setDebugBorderColor(SkColor); 149 void setDebugBorderColor(SkColor);
150 SkColor debugBorderColor() const { return m_debugBorderColor; } 150 SkColor debugBorderColor() const { return m_debugBorderColor; }
151 void setDebugBorderWidth(float); 151 void setDebugBorderWidth(float);
152 float debugBorderWidth() const { return m_debugBorderWidth; } 152 float debugBorderWidth() const { return m_debugBorderWidth; }
153 bool hasDebugBorders() const; 153 bool hasDebugBorders() const;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 gfx::Rect m_visibleContentRect; 337 gfx::Rect m_visibleContentRect;
338 bool m_masksToBounds; 338 bool m_masksToBounds;
339 bool m_contentsOpaque; 339 bool m_contentsOpaque;
340 float m_opacity; 340 float m_opacity;
341 gfx::PointF m_position; 341 gfx::PointF m_position;
342 bool m_preserves3D; 342 bool m_preserves3D;
343 bool m_useParentBackfaceVisibility; 343 bool m_useParentBackfaceVisibility;
344 bool m_drawCheckerboardForMissingTiles; 344 bool m_drawCheckerboardForMissingTiles;
345 WebKit::WebTransformationMatrix m_sublayerTransform; 345 WebKit::WebTransformationMatrix m_sublayerTransform;
346 WebKit::WebTransformationMatrix m_transform; 346 WebKit::WebTransformationMatrix m_transform;
347 bool m_useLCDText; 347 bool m_canUseLCDText;
348 348
349 bool m_drawsContent; 349 bool m_drawsContent;
350 bool m_forceRenderSurface; 350 bool m_forceRenderSurface;
351 351
352 // Set for the layer that other layers are fixed to. 352 // Set for the layer that other layers are fixed to.
353 bool m_isContainerForFixedPositionLayers; 353 bool m_isContainerForFixedPositionLayers;
354 // This is true if the layer should be fixed to the closest ancestor contain er. 354 // This is true if the layer should be fixed to the closest ancestor contain er.
355 bool m_fixedToContainerLayer; 355 bool m_fixedToContainerLayer;
356 356
357 gfx::Vector2dF m_scrollDelta; 357 gfx::Vector2dF m_scrollDelta;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; 410 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController;
411 411
412 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 412 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
413 }; 413 };
414 414
415 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*> ::iterator end, LayerSorter*); 415 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*> ::iterator end, LayerSorter*);
416 416
417 } 417 }
418 418
419 #endif // CC_LAYER_IMPL_H_ 419 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_impl.cc » ('j') | cc/layer_tree_host_common.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698