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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 // 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 "platform/graphics/paint/PaintController.h" 5 #include "platform/graphics/paint/PaintController.h"
6 6
7 #include "platform/graphics/GraphicsLayer.h" 7 #include "platform/graphics/GraphicsLayer.h"
8 #include "platform/graphics/paint/DrawingDisplayItem.h" 8 #include "platform/graphics/paint/DrawingDisplayItem.h"
9 #include "platform/instrumentation/tracing/TraceEvent.h" 9 #include "platform/instrumentation/tracing/TraceEvent.h"
10 #include "platform/wtf/AutoReset.h" 10 #include "platform/wtf/AutoReset.h"
11 #include "platform/wtf/text/StringBuilder.h" 11 #include "platform/wtf/text/StringBuilder.h"
12 #include "third_party/skia/include/core/SkPictureAnalyzer.h" 12 #include "third_party/skia/include/core/SkPictureAnalyzer.h"
13 13
14 #ifndef NDEBUG 14 #ifndef NDEBUG
15 #include <stdio.h>
15 #include "platform/graphics/LoggingCanvas.h" 16 #include "platform/graphics/LoggingCanvas.h"
16 #include <stdio.h>
17 #endif 17 #endif
18 18
19 namespace blink { 19 namespace blink {
20 20
21 void PaintController::SetTracksRasterInvalidations(bool value) { 21 void PaintController::SetTracksRasterInvalidations(bool value) {
22 if (value) { 22 if (value) {
23 raster_invalidation_tracking_info_ = 23 raster_invalidation_tracking_info_ =
24 WTF::MakeUnique<RasterInvalidationTrackingInfo>(); 24 WTF::MakeUnique<RasterInvalidationTrackingInfo>();
25 25
26 // This is called just after a full document cycle update, so all clients in 26 // This is called just after a full document cycle update, so all clients in
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 } 1104 }
1105 1105
1106 FrameFirstPaint PaintController::EndFrame(const void* frame) { 1106 FrameFirstPaint PaintController::EndFrame(const void* frame) {
1107 FrameFirstPaint result = frame_first_paints_.back(); 1107 FrameFirstPaint result = frame_first_paints_.back();
1108 DCHECK(result.frame == frame); 1108 DCHECK(result.frame == frame);
1109 frame_first_paints_.pop_back(); 1109 frame_first_paints_.pop_back();
1110 return result; 1110 return result;
1111 } 1111 }
1112 1112
1113 } // namespace blink 1113 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698