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

Side by Side Diff: cc/layer.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
« no previous file with comments | « no previous file | cc/layer.cc » ('j') | cc/layer_tree_host_common.h » ('J')
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 #ifndef CC_LAYER_H_ 5 #ifndef CC_LAYER_H_
6 #define CC_LAYER_H_ 6 #define CC_LAYER_H_
7 7
8 #include "Region.h" 8 #include "Region.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 void setDoubleSided(bool); 163 void setDoubleSided(bool);
164 bool doubleSided() const { return m_doubleSided; } 164 bool doubleSided() const { return m_doubleSided; }
165 165
166 void setPreserves3D(bool preserve3D) { m_preserves3D = preserve3D; } 166 void setPreserves3D(bool preserve3D) { m_preserves3D = preserve3D; }
167 bool preserves3D() const { return m_preserves3D; } 167 bool preserves3D() const { return m_preserves3D; }
168 168
169 void setUseParentBackfaceVisibility(bool useParentBackfaceVisibility) { m_us eParentBackfaceVisibility = useParentBackfaceVisibility; } 169 void setUseParentBackfaceVisibility(bool useParentBackfaceVisibility) { m_us eParentBackfaceVisibility = useParentBackfaceVisibility; }
170 bool useParentBackfaceVisibility() const { return m_useParentBackfaceVisibil ity; } 170 bool useParentBackfaceVisibility() const { return m_useParentBackfaceVisibil ity; }
171 171
172 virtual void setUseLCDText(bool); 172 virtual void setCanUseLCDText(bool);
173 bool useLCDText() const { return m_useLCDText; } 173 bool canUseLCDText() const { return m_canUseLCDText; }
174 174
175 virtual void setLayerTreeHost(LayerTreeHost*); 175 virtual void setLayerTreeHost(LayerTreeHost*);
176 176
177 bool hasContributingDelegatedRenderPasses() const { return false; } 177 bool hasContributingDelegatedRenderPasses() const { return false; }
178 178
179 void setIsDrawable(bool); 179 void setIsDrawable(bool);
180 180
181 void setReplicaLayer(Layer*); 181 void setReplicaLayer(Layer*);
182 Layer* replicaLayer() const { return m_replicaLayer.get(); } 182 Layer* replicaLayer() const { return m_replicaLayer.get(); }
183 183
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 SkImageFilter* m_filter; 360 SkImageFilter* m_filter;
361 WebKit::WebFilterOperations m_filters; 361 WebKit::WebFilterOperations m_filters;
362 WebKit::WebFilterOperations m_backgroundFilters; 362 WebKit::WebFilterOperations m_backgroundFilters;
363 float m_anchorPointZ; 363 float m_anchorPointZ;
364 bool m_isContainerForFixedPositionLayers; 364 bool m_isContainerForFixedPositionLayers;
365 bool m_fixedToContainerLayer; 365 bool m_fixedToContainerLayer;
366 bool m_isDrawable; 366 bool m_isDrawable;
367 bool m_masksToBounds; 367 bool m_masksToBounds;
368 bool m_contentsOpaque; 368 bool m_contentsOpaque;
369 bool m_doubleSided; 369 bool m_doubleSided;
370 bool m_useLCDText; 370 bool m_canUseLCDText;
371 bool m_preserves3D; 371 bool m_preserves3D;
372 bool m_useParentBackfaceVisibility; 372 bool m_useParentBackfaceVisibility;
373 bool m_drawCheckerboardForMissingTiles; 373 bool m_drawCheckerboardForMissingTiles;
374 bool m_forceRenderSurface; 374 bool m_forceRenderSurface;
375 375
376 WebKit::WebTransformationMatrix m_transform; 376 WebKit::WebTransformationMatrix m_transform;
377 WebKit::WebTransformationMatrix m_sublayerTransform; 377 WebKit::WebTransformationMatrix m_sublayerTransform;
378 378
379 // Replica layer used for reflections. 379 // Replica layer used for reflections.
380 scoped_refptr<Layer> m_replicaLayer; 380 scoped_refptr<Layer> m_replicaLayer;
(...skipping 20 matching lines...) Expand all
401 401
402 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 402 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
403 WebKit::WebLayerScrollClient* m_layerScrollClient; 403 WebKit::WebLayerScrollClient* m_layerScrollClient;
404 }; 404 };
405 405
406 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 406 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
407 407
408 } // namespace cc 408 } // namespace cc
409 409
410 #endif // CC_LAYER_H_ 410 #endif // CC_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer.cc » ('j') | cc/layer_tree_host_common.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698