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

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: fixed WebViewTest.SetBaseBackgroundColorAndBlendWithExistingContent 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
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/core/rendering/compositing/RenderLayerCompositor.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 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; 352 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
351 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 353 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
352 #if USE(RUBBER_BANDING) 354 #if USE(RUBBER_BANDING)
353 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 355 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
354 #endif 356 #endif
355 }; 357 };
356 358
357 } // namespace WebCore 359 } // namespace WebCore
358 360
359 #endif // RenderLayerCompositor_h 361 #endif // RenderLayerCompositor_h
OLDNEW
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/core/rendering/compositing/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698