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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "third_party/skia/include/core/SkPictureAnalyzer.h" 10 #include "third_party/skia/include/core/SkPictureAnalyzer.h"
11 #include "wtf/AutoReset.h" 11 #include "wtf/AutoReset.h"
12 #include "wtf/text/StringBuilder.h" 12 #include "wtf/text/StringBuilder.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 m_paintChunksRasterInvalidationTrackingMap = 23 m_paintChunksRasterInvalidationTrackingMap =
24 WTF::wrapUnique(new RasterInvalidationTrackingMap<const PaintChunk>); 24 WTF::wrapUnique(new RasterInvalidationTrackingMap<const PaintChunk>);
25 } else { 25 } else {
26 m_paintChunksRasterInvalidationTrackingMap = nullptr; 26 m_paintChunksRasterInvalidationTrackingMap = nullptr;
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 showPaintRecords 861 showPaintRecords
862 ? (DisplayItemList::JsonOptions::ShowPaintRecords | 862 ? (DisplayItemList::JsonOptions::ShowPaintRecords |
863 DisplayItemList::JsonOptions::ShowClientDebugName) 863 DisplayItemList::JsonOptions::ShowClientDebugName)
864 : DisplayItemList::JsonOptions::ShowClientDebugName) 864 : DisplayItemList::JsonOptions::ShowClientDebugName)
865 ->toPrettyJSONString() 865 ->toPrettyJSONString()
866 .utf8() 866 .utf8()
867 .data()); 867 .data());
868 } 868 }
869 869
870 } // namespace blink 870 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698