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

Side by Side Diff: cc/scheduler/rate_limiter.cc

Issue 16085003: Update refernces to Blink's Platform API (cc) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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/resources/sync_point_helper.cc ('k') | cc/scheduler/texture_uploader.cc » ('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/scheduler/rate_limiter.h" 5 #include "cc/scheduler/rate_limiter.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/base/thread.h" 8 #include "cc/base/thread.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 9 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 scoped_refptr<RateLimiter> RateLimiter::Create( 13 scoped_refptr<RateLimiter> RateLimiter::Create(
14 WebKit::WebGraphicsContext3D* context, 14 WebKit::WebGraphicsContext3D* context,
15 RateLimiterClient* client, 15 RateLimiterClient* client,
16 Thread* thread) { 16 Thread* thread) {
17 return make_scoped_refptr(new RateLimiter(context, client, thread)); 17 return make_scoped_refptr(new RateLimiter(context, client, thread));
18 } 18 }
19 19
(...skipping 28 matching lines...) Expand all
48 return; 48 return;
49 49
50 TRACE_EVENT0("cc", "RateLimiter::RateLimitContext"); 50 TRACE_EVENT0("cc", "RateLimiter::RateLimitContext");
51 51
52 active_ = false; 52 active_ = false;
53 client_->RateLimit(); 53 client_->RateLimit();
54 context_->rateLimitOffscreenContextCHROMIUM(); 54 context_->rateLimitOffscreenContextCHROMIUM();
55 } 55 }
56 56
57 } // namespace cc 57 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/sync_point_helper.cc ('k') | cc/scheduler/texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698