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

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

Issue 183763016: Reduce compositing update in Silk's toggle_drawer by 20% (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix win build Created 6 years, 9 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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef RenderLayerCompositor_h 26 #ifndef RenderLayerCompositor_h
27 #define RenderLayerCompositor_h 27 #define RenderLayerCompositor_h
28 28
29 #include "core/page/ChromeClient.h" 29 #include "core/page/ChromeClient.h"
30 #include "core/rendering/RenderLayer.h" 30 #include "core/rendering/RenderLayer.h"
31 #include "core/rendering/compositing/CompositingReasonFinder.h" 31 #include "core/rendering/compositing/CompositingReasonFinder.h"
32 #include "core/rendering/compositing/GraphicsLayerUpdater.h"
32 #include "platform/graphics/GraphicsLayerClient.h" 33 #include "platform/graphics/GraphicsLayerClient.h"
33 #include "wtf/HashMap.h" 34 #include "wtf/HashMap.h"
34 35
35 namespace WebCore { 36 namespace WebCore {
36 37
37 class FixedPositionViewportConstraints; 38 class FixedPositionViewportConstraints;
38 class GraphicsLayer; 39 class GraphicsLayer;
39 class RenderEmbeddedObject; 40 class RenderEmbeddedObject;
40 class RenderLayerStackingNode; 41 class RenderLayerStackingNode;
41 class RenderPart; 42 class RenderPart;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 OwnPtr<GraphicsLayer> m_rootTransformLayer; 334 OwnPtr<GraphicsLayer> m_rootTransformLayer;
334 335
335 CompositingReasonFinder m_compositingReasonFinder; 336 CompositingReasonFinder m_compositingReasonFinder;
336 337
337 bool m_hasAcceleratedCompositing; 338 bool m_hasAcceleratedCompositing;
338 bool m_showRepaintCounter; 339 bool m_showRepaintCounter;
339 340
340 // FIXME: This should absolutely not be mutable. 341 // FIXME: This should absolutely not be mutable.
341 mutable bool m_needsToRecomputeCompositingRequirements; 342 mutable bool m_needsToRecomputeCompositingRequirements;
342 bool m_needsToUpdateLayerTreeGeometry; 343 bool m_needsToUpdateLayerTreeGeometry;
344 GraphicsLayerUpdater::UpdateType m_pendingUpdateType;
343 345
344 bool m_compositing; 346 bool m_compositing;
345 bool m_compositingLayersNeedRebuild; 347 bool m_compositingLayersNeedRebuild;
346 bool m_forceCompositingMode; 348 bool m_forceCompositingMode;
347 bool m_needsUpdateCompositingRequirementsState; 349 bool m_needsUpdateCompositingRequirementsState;
348 350
349 bool m_isTrackingRepaints; // Used for testing. 351 bool m_isTrackingRepaints; // Used for testing.
350 352
351 RootLayerAttachment m_rootLayerAttachment; 353 RootLayerAttachment m_rootLayerAttachment;
352 354
(...skipping 17 matching lines...) Expand all
370 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 372 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
371 #if USE(RUBBER_BANDING) 373 #if USE(RUBBER_BANDING)
372 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 374 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
373 #endif 375 #endif
374 }; 376 };
375 377
376 378
377 } // namespace WebCore 379 } // namespace WebCore
378 380
379 #endif // RenderLayerCompositor_h 381 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698