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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2724083002: [SPv2] Decomposite otherwise-compositable animations that paint nothing. (Closed)
Patch Set: Clean up after initial review. Created 3 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 29 matching lines...) Expand all
40 #include "core/paint/PaintPhase.h" 40 #include "core/paint/PaintPhase.h"
41 #include "core/paint/ScrollbarManager.h" 41 #include "core/paint/ScrollbarManager.h"
42 #include "platform/FrameViewBase.h" 42 #include "platform/FrameViewBase.h"
43 #include "platform/RuntimeEnabledFeatures.h" 43 #include "platform/RuntimeEnabledFeatures.h"
44 #include "platform/animation/CompositorAnimationHost.h" 44 #include "platform/animation/CompositorAnimationHost.h"
45 #include "platform/animation/CompositorAnimationTimeline.h" 45 #include "platform/animation/CompositorAnimationTimeline.h"
46 #include "platform/geometry/IntRect.h" 46 #include "platform/geometry/IntRect.h"
47 #include "platform/geometry/LayoutRect.h" 47 #include "platform/geometry/LayoutRect.h"
48 #include "platform/graphics/Color.h" 48 #include "platform/graphics/Color.h"
49 #include "platform/graphics/GraphicsLayerClient.h" 49 #include "platform/graphics/GraphicsLayerClient.h"
50 // TODO(wkorman): See whether we can come up with a forward decl that works for
51 // CompositorElementIdSet.
52 #include "platform/graphics/compositing/PaintArtifactCompositor.h"
50 #include "platform/scroll/ScrollTypes.h" 53 #include "platform/scroll/ScrollTypes.h"
51 #include "platform/scroll/Scrollbar.h" 54 #include "platform/scroll/Scrollbar.h"
52 #include "public/platform/ShapeProperties.h" 55 #include "public/platform/ShapeProperties.h"
53 #include "public/platform/WebDisplayMode.h" 56 #include "public/platform/WebDisplayMode.h"
54 #include "public/platform/WebRect.h" 57 #include "public/platform/WebRect.h"
55 #include "wtf/Allocator.h" 58 #include "wtf/Allocator.h"
56 #include "wtf/AutoReset.h" 59 #include "wtf/AutoReset.h"
57 #include "wtf/Forward.h" 60 #include "wtf/Forward.h"
58 #include "wtf/HashSet.h" 61 #include "wtf/HashSet.h"
59 #include "wtf/ListHashSet.h" 62 #include "wtf/ListHashSet.h"
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 void updateStyleAndLayoutIfNeededRecursive(); 923 void updateStyleAndLayoutIfNeededRecursive();
921 void prePaint(); 924 void prePaint();
922 void paintTree(); 925 void paintTree();
923 void paintGraphicsLayerRecursively(GraphicsLayer*); 926 void paintGraphicsLayerRecursively(GraphicsLayer*);
924 927
925 void updateStyleAndLayoutIfNeededRecursiveInternal(); 928 void updateStyleAndLayoutIfNeededRecursiveInternal();
926 void invalidateTreeIfNeededRecursiveInternal(); 929 void invalidateTreeIfNeededRecursiveInternal();
927 930
928 // TODO(wangxianzhu): Remove the parameter and use m_paintController for SPv2. 931 // TODO(wangxianzhu): Remove the parameter and use m_paintController for SPv2.
929 void notifyPaint(const PaintController&) const; 932 void notifyPaint(const PaintController&) const;
930 void pushPaintArtifactToCompositor(); 933 void pushPaintArtifactToCompositor(
934 CompositorElementIdSet& compositedAnimationElementIds);
931 935
932 void reset(); 936 void reset();
933 void init(); 937 void init();
934 938
935 void clearLayoutSubtreeRootsAndMarkContainingBlocks(); 939 void clearLayoutSubtreeRootsAndMarkContainingBlocks();
936 940
937 // Called when our frame rect changes (or the rect/scroll offset of an 941 // Called when our frame rect changes (or the rect/scroll offset of an
938 // ancestor changes). 942 // ancestor changes).
939 void frameRectsChanged() override; 943 void frameRectsChanged() override;
940 944
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 frameViewBase.isFrameView()); 1270 frameViewBase.isFrameView());
1267 DEFINE_TYPE_CASTS(FrameView, 1271 DEFINE_TYPE_CASTS(FrameView,
1268 ScrollableArea, 1272 ScrollableArea,
1269 scrollableArea, 1273 scrollableArea,
1270 scrollableArea->isFrameView(), 1274 scrollableArea->isFrameView(),
1271 scrollableArea.isFrameView()); 1275 scrollableArea.isFrameView());
1272 1276
1273 } // namespace blink 1277 } // namespace blink
1274 1278
1275 #endif // FrameView_h 1279 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698