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

Side by Side Diff: sky/engine/core/rendering/compositing/CompositingLayerAssigner.h

Issue 709623002: Remove sparsity tolerance check when considering squashing layers (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | sky/engine/core/rendering/compositing/CompositingLayerAssigner.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // The absolute bounding rect of all the squashed layers. 74 // The absolute bounding rect of all the squashed layers.
75 IntRect boundingRect; 75 IntRect boundingRect;
76 76
77 // This is simply the sum of the areas of the squashed rects. This can b e very skewed if the rects overlap, 77 // This is simply the sum of the areas of the squashed rects. This can b e very skewed if the rects overlap,
78 // but should be close enough to drive a heuristic. 78 // but should be close enough to drive a heuristic.
79 uint64_t totalAreaOfSquashedRects; 79 uint64_t totalAreaOfSquashedRects;
80 }; 80 };
81 81
82 void assignLayersToBackingsInternal(RenderLayer*, SquashingState&, Vector<Re nderLayer*>& layersNeedingPaintInvalidation); 82 void assignLayersToBackingsInternal(RenderLayer*, SquashingState&, Vector<Re nderLayer*>& layersNeedingPaintInvalidation);
83 CompositingReasons getReasonsPreventingSquashing(const RenderLayer*, const S quashingState&); 83 CompositingReasons getReasonsPreventingSquashing(const RenderLayer*, const S quashingState&);
84 bool squashingWouldExceedSparsityTolerance(const RenderLayer* candidate, con st SquashingState&);
85 void updateSquashingAssignment(RenderLayer*, SquashingState&, CompositingSta teTransitionType, Vector<RenderLayer*>& layersNeedingPaintInvalidation); 84 void updateSquashingAssignment(RenderLayer*, SquashingState&, CompositingSta teTransitionType, Vector<RenderLayer*>& layersNeedingPaintInvalidation);
86 bool needsOwnBacking(const RenderLayer*) const; 85 bool needsOwnBacking(const RenderLayer*) const;
87 86
88 RenderLayerCompositor* m_compositor; 87 RenderLayerCompositor* m_compositor;
89 bool m_layerSquashingEnabled; 88 bool m_layerSquashingEnabled;
90 bool m_layersChanged; 89 bool m_layersChanged;
91 }; 90 };
92 91
93 } // namespace blink 92 } // namespace blink
94 93
95 #endif // CompositingLayerAssigner_h 94 #endif // CompositingLayerAssigner_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/rendering/compositing/CompositingLayerAssigner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698