OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "cc/texture_uploader.h" | 7 #include "cc/texture_uploader.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 if (m_texturesPerSecondHistory.size() >= uploadHistorySizeMax) { | 350 if (m_texturesPerSecondHistory.size() >= uploadHistorySizeMax) { |
351 m_texturesPerSecondHistory.erase(m_texturesPerSecondHistory.begin())
; | 351 m_texturesPerSecondHistory.erase(m_texturesPerSecondHistory.begin())
; |
352 m_texturesPerSecondHistory.erase(--m_texturesPerSecondHistory.end())
; | 352 m_texturesPerSecondHistory.erase(--m_texturesPerSecondHistory.end())
; |
353 } | 353 } |
354 m_texturesPerSecondHistory.insert(texturesPerSecond); | 354 m_texturesPerSecondHistory.insert(texturesPerSecond); |
355 | 355 |
356 m_availableQueries.append(m_pendingQueries.takeFirst()); | 356 m_availableQueries.append(m_pendingQueries.takeFirst()); |
357 } | 357 } |
358 } | 358 } |
359 | 359 |
360 } | 360 } // namespace cc |
OLD | NEW |