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

Side by Side Diff: third_party/WebKit/Source/core/paint/FramePainter.cpp

Issue 1878943011: CL for perf tryjob on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | tools/perf/run_benchmark » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "core/paint/FramePainter.h" 5 #include "core/paint/FramePainter.h"
6 6
7 #include "core/editing/markers/DocumentMarkerController.h" 7 #include "core/editing/markers/DocumentMarkerController.h"
8 #include "core/fetch/MemoryCache.h" 8 #include "core/fetch/MemoryCache.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/inspector/InspectorInstrumentation.h" 10 #include "core/inspector/InspectorInstrumentation.h"
11 #include "core/inspector/InspectorTraceEvents.h" 11 #include "core/inspector/InspectorTraceEvents.h"
12 #include "core/layout/LayoutPart.h"
12 #include "core/layout/LayoutView.h" 13 #include "core/layout/LayoutView.h"
13 #include "core/page/Page.h" 14 #include "core/page/Page.h"
14 #include "core/paint/LayoutObjectDrawingRecorder.h" 15 #include "core/paint/LayoutObjectDrawingRecorder.h"
15 #include "core/paint/PaintInfo.h" 16 #include "core/paint/PaintInfo.h"
16 #include "core/paint/PaintLayer.h" 17 #include "core/paint/PaintLayer.h"
17 #include "core/paint/PaintLayerPainter.h" 18 #include "core/paint/PaintLayerPainter.h"
18 #include "core/paint/ScrollbarPainter.h" 19 #include "core/paint/ScrollbarPainter.h"
19 #include "core/paint/TransformRecorder.h" 20 #include "core/paint/TransformRecorder.h"
20 #include "platform/fonts/FontCache.h" 21 #include "platform/fonts/FontCache.h"
21 #include "platform/graphics/GraphicsContext.h" 22 #include "platform/graphics/GraphicsContext.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 115 }
115 #endif 116 #endif
116 117
117 LayoutView* layoutView = frameView().layoutView(); 118 LayoutView* layoutView = frameView().layoutView();
118 if (!layoutView) { 119 if (!layoutView) {
119 DLOG(ERROR) << "called FramePainter::paint with nil layoutObject"; 120 DLOG(ERROR) << "called FramePainter::paint with nil layoutObject";
120 return; 121 return;
121 } 122 }
122 123
123 if (!frameView().shouldThrottleRendering()) { 124 if (!frameView().shouldThrottleRendering()) {
125 if (frameView().needsLayout()) {
126 fprintf(stderr, "frameView %p needsLayout (layoutPending: %d layoutV iewNeedsLayout: %d isSubtreeLayout: %d)!!!!\n",
127 &frameView(), frameView().m_hasPendingLayout, frameView().layout View() && frameView().layoutView()->needsLayout(), frameView().isSubtreeLayout() );
128 showLayoutTree(frameView().layoutView());
129 showLayoutTree(frameView().frame().ownerLayoutObject());
130 frameView().showFrameTree();
131 }
124 RELEASE_ASSERT(!frameView().needsLayout()); 132 RELEASE_ASSERT(!frameView().needsLayout());
125 ASSERT(document->lifecycle().state() >= DocumentLifecycle::CompositingCl ean); 133 ASSERT(document->lifecycle().state() >= DocumentLifecycle::CompositingCl ean);
126 } 134 }
127 135
128 TRACE_EVENT1("devtools.timeline", "Paint", "data", InspectorPaintEvent::data (layoutView, LayoutRect(rect), 0)); 136 TRACE_EVENT1("devtools.timeline", "Paint", "data", InspectorPaintEvent::data (layoutView, LayoutRect(rect), 0));
129 137
130 bool isTopLevelPainter = !s_inPaintContents; 138 bool isTopLevelPainter = !s_inPaintContents;
131 s_inPaintContents = true; 139 s_inPaintContents = true;
132 140
133 FontCachePurgePreventer fontCachePurgePreventer; 141 FontCachePurgePreventer fontCachePurgePreventer;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 bar.paint(context, CullRect(rect)); 219 bar.paint(context, CullRect(rect));
212 } 220 }
213 221
214 const FrameView& FramePainter::frameView() 222 const FrameView& FramePainter::frameView()
215 { 223 {
216 ASSERT(m_frameView); 224 ASSERT(m_frameView);
217 return *m_frameView; 225 return *m_frameView;
218 } 226 }
219 227
220 } // namespace blink 228 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | tools/perf/run_benchmark » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698