| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/gpu/SharedContextRateLimiter.h" | 5 #include "platform/graphics/gpu/SharedContextRateLimiter.h" |
| 6 | 6 |
| 7 #include "platform/graphics/gpu/Extensions3DUtil.h" | 7 #include "platform/graphics/gpu/Extensions3DUtil.h" |
| 8 #include "public/platform/Platform.h" | 8 #include "public/platform/Platform.h" |
| 9 #include "public/platform/WebGraphicsContext3D.h" | |
| 10 #include "public/platform/WebGraphicsContext3DProvider.h" | 9 #include "public/platform/WebGraphicsContext3DProvider.h" |
| 11 | 10 |
| 12 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM | 11 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM |
| 13 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7 | 12 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7 |
| 14 #endif | 13 #endif |
| 15 | 14 |
| 16 namespace blink { | 15 namespace blink { |
| 17 | 16 |
| 18 PassOwnPtr<SharedContextRateLimiter> SharedContextRateLimiter::create(unsigned m
axPendingTicks) | 17 PassOwnPtr<SharedContextRateLimiter> SharedContextRateLimiter::create(unsigned m
axPendingTicks) |
| 19 { | 18 { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 while (m_queries.size() > 0) { | 74 while (m_queries.size() > 0) { |
| 76 gl->DeleteQueriesEXT(1, &m_queries.first()); | 75 gl->DeleteQueriesEXT(1, &m_queries.first()); |
| 77 m_queries.removeFirst(); | 76 m_queries.removeFirst(); |
| 78 } | 77 } |
| 79 } else { | 78 } else { |
| 80 m_queries.clear(); | 79 m_queries.clear(); |
| 81 } | 80 } |
| 82 } | 81 } |
| 83 | 82 |
| 84 } // namespace blink | 83 } // namespace blink |
| OLD | NEW |