OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "RateLimiter.h" | 7 #include "cc/rate_limiter.h" |
8 | 8 |
9 #include "CCProxy.h" | 9 #include "CCProxy.h" |
10 #include "CCThread.h" | 10 #include "CCThread.h" |
11 #include "TraceEvent.h" | 11 #include "TraceEvent.h" |
12 #include <public/WebGraphicsContext3D.h> | 12 #include <public/WebGraphicsContext3D.h> |
13 #include <wtf/RefPtr.h> | 13 #include <wtf/RefPtr.h> |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 class RateLimiter::Task : public CCThread::Task { | 17 class RateLimiter::Task : public CCThread::Task { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 return; | 76 return; |
77 | 77 |
78 TRACE_EVENT0("cc", "RateLimiter::rateLimitContext"); | 78 TRACE_EVENT0("cc", "RateLimiter::rateLimitContext"); |
79 | 79 |
80 m_active = false; | 80 m_active = false; |
81 m_client->rateLimit(); | 81 m_client->rateLimit(); |
82 m_context->rateLimitOffscreenContextCHROMIUM(); | 82 m_context->rateLimitOffscreenContextCHROMIUM(); |
83 } | 83 } |
84 | 84 |
85 } | 85 } |
OLD | NEW |