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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h

Issue 1428643004: Repaint on interest rect change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableSyncPaint
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintControllerPaintTest_h 5 #ifndef PaintControllerPaintTest_h
6 #define PaintControllerPaintTest_h 6 #define PaintControllerPaintTest_h
7 7
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/layout/LayoutTestHelper.h" 9 #include "core/layout/LayoutTestHelper.h"
10 #include "core/layout/LayoutView.h" 10 #include "core/layout/LayoutView.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class PaintControllerPaintTestForSlimmingPaintV2 : public RenderingTest { 48 class PaintControllerPaintTestForSlimmingPaintV2 : public RenderingTest {
49 public: 49 public:
50 PaintControllerPaintTestForSlimmingPaintV2() 50 PaintControllerPaintTestForSlimmingPaintV2()
51 : m_originalSlimmingPaintV2Enabled(RuntimeEnabledFeatures::slimmingPaint V2Enabled()) { } 51 : m_originalSlimmingPaintV2Enabled(RuntimeEnabledFeatures::slimmingPaint V2Enabled()) { }
52 52
53 protected: 53 protected:
54 LayoutView& layoutView() { return *document().layoutView(); } 54 LayoutView& layoutView() { return *document().layoutView(); }
55 PaintController& rootPaintController() { return *layoutView().layer()->graph icsLayerBacking()->paintController(); } 55 PaintController& rootPaintController() { return *layoutView().layer()->graph icsLayerBacking()->paintController(); }
56 56
57 // Expose some document lifecycle steps for checking new display items befor e commiting. 57 // Expose some document lifecycle steps for checking new display items befor e commiting.
58 void updateLifecyclePhasesToPaintClean(const LayoutRect* interestRect = null ptr) 58 void updateLifecyclePhasesToPaintClean(const IntRect* interestRect = nullptr )
59 { 59 {
60 document().view()->updateLifecyclePhasesInternal(FrameView::OnlyUpToComp ositingCleanPlusScrolling, nullptr); 60 document().view()->updateLifecyclePhasesInternal(FrameView::OnlyUpToComp ositingCleanPlusScrolling, nullptr);
61 document().view()->invalidateTreeIfNeededRecursive(); 61 document().view()->invalidateTreeIfNeededRecursive();
62 document().view()->updatePaintProperties(); 62 document().view()->updatePaintProperties();
63 document().view()->synchronizedPaint(interestRect); 63 document().view()->synchronizedPaint(interestRect);
64 } 64 }
65 void compositeForSlimmingPaintV2() { document().view()->compositeForSlimming PaintV2(); } 65 void compositeForSlimmingPaintV2() { document().view()->compositeForSlimming PaintV2(); }
66 66
67 private: 67 private:
68 void SetUp() override 68 void SetUp() override
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const DisplayItem::Type cachedBackgroundType = DisplayItem::drawingTypeToCachedD rawingType(backgroundType); 117 const DisplayItem::Type cachedBackgroundType = DisplayItem::drawingTypeToCachedD rawingType(backgroundType);
118 const DisplayItem::Type foregroundType = DisplayItem::paintPhaseToDrawingType(Pa intPhaseForeground); 118 const DisplayItem::Type foregroundType = DisplayItem::paintPhaseToDrawingType(Pa intPhaseForeground);
119 const DisplayItem::Type cachedForegroundType = DisplayItem::drawingTypeToCachedD rawingType(foregroundType); 119 const DisplayItem::Type cachedForegroundType = DisplayItem::drawingTypeToCachedD rawingType(foregroundType);
120 const DisplayItem::Type subsequenceType = DisplayItem::SubsequenceNormalFlowAndP ositiveZOrder; 120 const DisplayItem::Type subsequenceType = DisplayItem::SubsequenceNormalFlowAndP ositiveZOrder;
121 const DisplayItem::Type endSubsequenceType = DisplayItem::subsequenceTypeToEndSu bsequenceType(subsequenceType); 121 const DisplayItem::Type endSubsequenceType = DisplayItem::subsequenceTypeToEndSu bsequenceType(subsequenceType);
122 const DisplayItem::Type cachedSubsequenceType = DisplayItem::subsequenceTypeToCa chedSubsequenceType(subsequenceType); 122 const DisplayItem::Type cachedSubsequenceType = DisplayItem::subsequenceTypeToCa chedSubsequenceType(subsequenceType);
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // PaintControllerPaintTest_h 126 #endif // PaintControllerPaintTest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698