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

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

Issue 2247543003: Tweak priorities of paint invalidation reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsRebaseline (for win and mac) Created 4 years, 4 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/PaintInvalidationReason.h" 5 #include "platform/graphics/PaintInvalidationReason.h"
6 6
7 #include "wtf/Assertions.h" 7 #include "wtf/Assertions.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 const char* paintInvalidationReasonToString(PaintInvalidationReason reason) 11 const char* paintInvalidationReasonToString(PaintInvalidationReason reason)
12 { 12 {
13 switch (reason) { 13 switch (reason) {
14 case PaintInvalidationNone: 14 case PaintInvalidationNone:
15 return "none"; 15 return "none";
16 case PaintInvalidationProbablyNone:
17 return "probably none";
16 case PaintInvalidationIncremental: 18 case PaintInvalidationIncremental:
17 return "incremental"; 19 return "incremental";
18 case PaintInvalidationRectangle: 20 case PaintInvalidationRectangle:
19 return "invalidate paint rectangle"; 21 return "invalidate paint rectangle";
20 case PaintInvalidationFull: 22 case PaintInvalidationFull:
21 return "full"; 23 return "full";
22 case PaintInvalidationStyleChange: 24 case PaintInvalidationStyleChange:
23 return "style change"; 25 return "style change";
24 case PaintInvalidationForcedByLayout: 26 case PaintInvalidationForcedByLayout:
25 return "forced by layout"; 27 return "forced by layout";
(...skipping 30 matching lines...) Expand all
56 case PaintInvalidationSVGResourceChange: 58 case PaintInvalidationSVGResourceChange:
57 return "SVG resource change"; 59 return "SVG resource change";
58 case PaintInvalidationDelayedFull: 60 case PaintInvalidationDelayedFull:
59 return "delayed full"; 61 return "delayed full";
60 } 62 }
61 ASSERT_NOT_REACHED(); 63 ASSERT_NOT_REACHED();
62 return ""; 64 return "";
63 } 65 }
64 66
65 } // namespace blink 67 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698