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

Side by Side Diff: cc/rate_limiter.cc

Issue 11615020: Clean up cc and webkit/compositor_bindings include path shenanigans (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/program_binding.cc ('k') | cc/render_pass.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "cc/rate_limiter.h" 5 #include "cc/rate_limiter.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/thread.h" 8 #include "cc/thread.h"
9 #include <public/WebGraphicsContext3D.h> 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 scoped_refptr<RateLimiter> RateLimiter::create(WebKit::WebGraphicsContext3D* con text, RateLimiterClient *client, Thread* thread) 13 scoped_refptr<RateLimiter> RateLimiter::create(WebKit::WebGraphicsContext3D* con text, RateLimiterClient *client, Thread* thread)
14 { 14 {
15 return make_scoped_refptr(new RateLimiter(context, client, thread)); 15 return make_scoped_refptr(new RateLimiter(context, client, thread));
16 } 16 }
17 17
18 RateLimiter::RateLimiter(WebKit::WebGraphicsContext3D* context, RateLimiterClien t *client, Thread* thread) 18 RateLimiter::RateLimiter(WebKit::WebGraphicsContext3D* context, RateLimiterClien t *client, Thread* thread)
19 : m_thread(thread) 19 : m_thread(thread)
(...skipping 30 matching lines...) Expand all
50 return; 50 return;
51 51
52 TRACE_EVENT0("cc", "RateLimiter::rateLimitContext"); 52 TRACE_EVENT0("cc", "RateLimiter::rateLimitContext");
53 53
54 m_active = false; 54 m_active = false;
55 m_client->rateLimit(); 55 m_client->rateLimit();
56 m_context->rateLimitOffscreenContextCHROMIUM(); 56 m_context->rateLimitOffscreenContextCHROMIUM();
57 } 57 }
58 58
59 } // namespace cc 59 } // namespace cc
OLDNEW
« no previous file with comments | « cc/program_binding.cc ('k') | cc/render_pass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698