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

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

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #include "platform/ScriptForbiddenScope.h" 85 #include "platform/ScriptForbiddenScope.h"
86 #include "platform/TraceEvent.h" 86 #include "platform/TraceEvent.h"
87 #include "platform/TracedValue.h" 87 #include "platform/TracedValue.h"
88 #include "platform/fonts/FontCache.h" 88 #include "platform/fonts/FontCache.h"
89 #include "platform/geometry/DoubleRect.h" 89 #include "platform/geometry/DoubleRect.h"
90 #include "platform/geometry/FloatRect.h" 90 #include "platform/geometry/FloatRect.h"
91 #include "platform/geometry/LayoutRect.h" 91 #include "platform/geometry/LayoutRect.h"
92 #include "platform/graphics/GraphicsContext.h" 92 #include "platform/graphics/GraphicsContext.h"
93 #include "platform/graphics/GraphicsLayer.h" 93 #include "platform/graphics/GraphicsLayer.h"
94 #include "platform/graphics/GraphicsLayerDebugInfo.h" 94 #include "platform/graphics/GraphicsLayerDebugInfo.h"
95 #include "platform/graphics/paint/DisplayItemList.h" 95 #include "platform/graphics/paint/PaintController.h"
96 #include "platform/scroll/ScrollAnimator.h" 96 #include "platform/scroll/ScrollAnimator.h"
97 #include "platform/text/TextStream.h" 97 #include "platform/text/TextStream.h"
98 #include "public/platform/WebDisplayItemList.h" 98 #include "public/platform/WebDisplayItemList.h"
99 #include "wtf/CurrentTime.h" 99 #include "wtf/CurrentTime.h"
100 #include "wtf/StdLibExtras.h" 100 #include "wtf/StdLibExtras.h"
101 #include "wtf/TemporaryChange.h" 101 #include "wtf/TemporaryChange.h"
102 102
103 namespace blink { 103 namespace blink {
104 104
105 using namespace HTMLNames; 105 using namespace HTMLNames;
(...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 2471
2472 // A null graphics layer can occur for painting of SVG images that are not p arented into the main frame tree. 2472 // A null graphics layer can occur for painting of SVG images that are not p arented into the main frame tree.
2473 if (rootGraphicsLayer) { 2473 if (rootGraphicsLayer) {
2474 synchronizedPaintRecursively(rootGraphicsLayer, interestRect); 2474 synchronizedPaintRecursively(rootGraphicsLayer, interestRect);
2475 } 2475 }
2476 lifecycle().advanceTo(DocumentLifecycle::PaintClean); 2476 lifecycle().advanceTo(DocumentLifecycle::PaintClean);
2477 } 2477 }
2478 2478
2479 void FrameView::synchronizedPaintRecursively(GraphicsLayer* graphicsLayer, const LayoutRect* interestRect) 2479 void FrameView::synchronizedPaintRecursively(GraphicsLayer* graphicsLayer, const LayoutRect* interestRect)
2480 { 2480 {
2481 GraphicsContext context(graphicsLayer->displayItemList()); 2481 GraphicsContext context(graphicsLayer->paintController());
2482 2482
2483 // TODO(chrishtr): fix unit tests to not inject one-off interest rects. 2483 // TODO(chrishtr): fix unit tests to not inject one-off interest rects.
2484 if (interestRect) { 2484 if (interestRect) {
2485 if (graphicsLayer->needsDisplay()) { 2485 if (graphicsLayer->needsDisplay()) {
2486 graphicsLayer->paint(context, roundedIntRect(*interestRect)); 2486 graphicsLayer->paint(context, roundedIntRect(*interestRect));
2487 2487
2488 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) 2488 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
2489 graphicsLayer->commitIfNeeded(); 2489 graphicsLayer->commitIfNeeded();
2490 } 2490 }
2491 } else { 2491 } else {
(...skipping 16 matching lines...) Expand all
2508 GraphicsLayer* rootGraphicsLayer = layoutView()->layer()->graphicsLayerBacki ng(); 2508 GraphicsLayer* rootGraphicsLayer = layoutView()->layer()->graphicsLayerBacki ng();
2509 2509
2510 // Detached frames can have no root graphics layer. 2510 // Detached frames can have no root graphics layer.
2511 if (!rootGraphicsLayer) 2511 if (!rootGraphicsLayer)
2512 return; 2512 return;
2513 2513
2514 lifecycle().advanceTo(DocumentLifecycle::InCompositingForSlimmingPaintV2); 2514 lifecycle().advanceTo(DocumentLifecycle::InCompositingForSlimmingPaintV2);
2515 2515
2516 rootGraphicsLayer->commitIfNeeded(); 2516 rootGraphicsLayer->commitIfNeeded();
2517 2517
2518 DisplayListCompositingBuilder compositingBuilder(*rootGraphicsLayer->display ItemList()); 2518 DisplayListCompositingBuilder compositingBuilder(*rootGraphicsLayer->paintCo ntroller());
2519 OwnPtr<CompositedDisplayList> compositedDisplayList = adoptPtr(new Composite dDisplayList()); 2519 OwnPtr<CompositedDisplayList> compositedDisplayList = adoptPtr(new Composite dDisplayList());
2520 compositingBuilder.build(*compositedDisplayList); 2520 compositingBuilder.build(*compositedDisplayList);
2521 page()->setCompositedDisplayList(compositedDisplayList.release()); 2521 page()->setCompositedDisplayList(compositedDisplayList.release());
2522 2522
2523 lifecycle().advanceTo(DocumentLifecycle::CompositingForSlimmingPaintV2Clean) ; 2523 lifecycle().advanceTo(DocumentLifecycle::CompositingForSlimmingPaintV2Clean) ;
2524 } 2524 }
2525 2525
2526 void FrameView::updateFrameTimingRequestsIfNeeded() 2526 void FrameView::updateFrameTimingRequestsIfNeeded()
2527 { 2527 {
2528 GraphicsLayerFrameTimingRequests graphicsLayerTimingRequests; 2528 GraphicsLayerFrameTimingRequests graphicsLayerTimingRequests;
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
3938 3938
3939 if (!graphicsLayer) 3939 if (!graphicsLayer)
3940 return; 3940 return;
3941 3941
3942 PaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentLayoutObjec t(), paintInvalidationContainer, viewRect); 3942 PaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentLayoutObjec t(), paintInvalidationContainer, viewRect);
3943 3943
3944 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing IntRect(viewRect))); 3944 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing IntRect(viewRect)));
3945 } 3945 }
3946 3946
3947 } // namespace blink 3947 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698