| 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 #include "cc/throttled_texture_uploader.h" | 6 #include "cc/throttled_texture_uploader.h" |
| 7 | 7 |
| 8 #include "CCPrioritizedTexture.h" | 8 #include "CCPrioritizedTexture.h" |
| 9 #include "CCProxy.h" | 9 #include "cc/proxy.h" |
| 10 #include "Extensions3DChromium.h" | 10 #include "Extensions3DChromium.h" |
| 11 #include "TraceEvent.h" | 11 #include "TraceEvent.h" |
| 12 #include "third_party/skia/include/gpu/SkGpuDevice.h" | 12 #include "third_party/skia/include/gpu/SkGpuDevice.h" |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <public/Platform.h> | 14 #include <public/Platform.h> |
| 15 #include <public/WebGraphicsContext3D.h> | 15 #include <public/WebGraphicsContext3D.h> |
| 16 #include <public/WebSharedGraphicsContext3D.h> | 16 #include <public/WebSharedGraphicsContext3D.h> |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 using WebKit::WebGraphicsContext3D; | 19 using WebKit::WebGraphicsContext3D; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // Remove the oldest values from our history and insert the new one | 271 // Remove the oldest values from our history and insert the new one |
| 272 double texturesPerSecond = 1.0 / (usElapsed * 1e-6); | 272 double texturesPerSecond = 1.0 / (usElapsed * 1e-6); |
| 273 m_texturesPerSecondHistory.pop_back(); | 273 m_texturesPerSecondHistory.pop_back(); |
| 274 m_texturesPerSecondHistory.push_front(texturesPerSecond); | 274 m_texturesPerSecondHistory.push_front(texturesPerSecond); |
| 275 | 275 |
| 276 m_availableQueries.append(m_pendingQueries.takeFirst()); | 276 m_availableQueries.append(m_pendingQueries.takeFirst()); |
| 277 } | 277 } |
| 278 } | 278 } |
| 279 | 279 |
| 280 } | 280 } |
| OLD | NEW |