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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.h

Issue 233323004: Move RenderLayerCompositor trigger caching to be when settings change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing; } 82 bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing; }
83 bool layerSquashingEnabled() const; 83 bool layerSquashingEnabled() const;
84 84
85 bool legacyOrCurrentAcceleratedCompositingForOverflowScrollEnabled() const; 85 bool legacyOrCurrentAcceleratedCompositingForOverflowScrollEnabled() const;
86 bool legacyAcceleratedCompositingForOverflowScrollEnabled() const; 86 bool legacyAcceleratedCompositingForOverflowScrollEnabled() const;
87 87
88 bool acceleratedCompositingForOverflowScrollEnabled() const; 88 bool acceleratedCompositingForOverflowScrollEnabled() const;
89 89
90 bool canRender3DTransforms() const; 90 bool canRender3DTransforms() const;
91 91
92 void updateForceCompositingMode();
93
92 // Copy the accelerated compositing related flags from Settings 94 // Copy the accelerated compositing related flags from Settings
93 void cacheAcceleratedCompositingFlags(); 95 void updateAcceleratedCompositingSettings();
94 96
95 // Called when the layer hierarchy needs to be updated (compositing layers h ave been 97 // Called when the layer hierarchy needs to be updated (compositing layers h ave been
96 // created, destroyed or re-parented). 98 // created, destroyed or re-parented).
97 void setCompositingLayersNeedRebuild(); 99 void setCompositingLayersNeedRebuild();
98 100
99 // Updating properties required for determining if compositing is necessary. 101 // Updating properties required for determining if compositing is necessary.
100 void updateCompositingRequirementsState(); 102 void updateCompositingRequirementsState();
101 void setNeedsUpdateCompositingRequirementsState() { m_needsUpdateCompositing RequirementsState = true; } 103 void setNeedsUpdateCompositingRequirementsState() { m_needsUpdateCompositing RequirementsState = true; }
102 104
103 // Used to indicate that a compositing update will be needed for the next fr ame that gets drawn. 105 // Used to indicate that a compositing update will be needed for the next fr ame that gets drawn.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; 343 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
342 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 344 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
343 #if USE(RUBBER_BANDING) 345 #if USE(RUBBER_BANDING)
344 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 346 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
345 #endif 347 #endif
346 }; 348 };
347 349
348 } // namespace WebCore 350 } // namespace WebCore
349 351
350 #endif // RenderLayerCompositor_h 352 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698