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

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

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h Created 3 years, 11 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 if (!m_ownerNodeId) 92 if (!m_ownerNodeId)
93 return; 93 return;
94 94
95 tracedValue->SetInteger("owner_node", m_ownerNodeId); 95 tracedValue->SetInteger("owner_node", m_ownerNodeId);
96 } 96 }
97 97
98 void GraphicsLayerDebugInfo::appendAnnotatedInvalidateRect( 98 void GraphicsLayerDebugInfo::appendAnnotatedInvalidateRect(
99 const FloatRect& rect, 99 const FloatRect& rect,
100 PaintInvalidationReason invalidationReason) { 100 PaintInvalidationReason invalidationReason) {
101 AnnotatedInvalidationRect annotatedRect = {rect, invalidationReason}; 101 AnnotatedInvalidationRect annotatedRect = {rect, invalidationReason};
102 m_invalidations.append(annotatedRect); 102 m_invalidations.push_back(annotatedRect);
103 } 103 }
104 104
105 void GraphicsLayerDebugInfo::clearAnnotatedInvalidateRects() { 105 void GraphicsLayerDebugInfo::clearAnnotatedInvalidateRects() {
106 m_previousInvalidations.clear(); 106 m_previousInvalidations.clear();
107 m_previousInvalidations.swap(m_invalidations); 107 m_previousInvalidations.swap(m_invalidations);
108 } 108 }
109 109
110 void GraphicsLayerDebugInfo::appendMainThreadScrollingReasons( 110 void GraphicsLayerDebugInfo::appendMainThreadScrollingReasons(
111 base::trace_event::TracedValue* tracedValue) const { 111 base::trace_event::TracedValue* tracedValue) const {
112 MainThreadScrollingReason::mainThreadScrollingReasonsAsTracedValue( 112 MainThreadScrollingReason::mainThreadScrollingReasonsAsTracedValue(
113 m_mainThreadScrollingReasons, tracedValue); 113 m_mainThreadScrollingReasons, tracedValue);
114 } 114 }
115 115
116 } // namespace blink 116 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698