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

Side by Side Diff: cc/RateLimiter.h

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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/ProgramBinding.cpp ('k') | cc/RateLimiter.cpp » ('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 #ifndef RateLimiter_h 5 #ifndef RateLimiter_h
6 #define RateLimiter_h 6 #define RateLimiter_h
7 7
8 #if USE(ACCELERATED_COMPOSITING) 8 #if USE(ACCELERATED_COMPOSITING)
9 9
10 #include <wtf/PassRefPtr.h> 10 #include <wtf/PassRefPtr.h>
11 #include <wtf/RefCounted.h> 11 #include <wtf/RefCounted.h>
12 12
13 namespace WebKit { 13 namespace WebKit {
14 class WebGraphicsContext3D; 14 class WebGraphicsContext3D;
15 } 15 }
16 16
17 namespace WebCore { 17 namespace cc {
18 18
19 class RateLimiterClient { 19 class RateLimiterClient {
20 public: 20 public:
21 virtual void rateLimit() = 0; 21 virtual void rateLimit() = 0;
22 }; 22 };
23 23
24 // A RateLimiter can be used to make sure that a single context does not dominat e all execution time. 24 // A RateLimiter can be used to make sure that a single context does not dominat e all execution time.
25 // To use, construct a RateLimiter class around the context and call start() whe never calls are made on the 25 // To use, construct a RateLimiter class around the context and call start() whe never calls are made on the
26 // context outside of normal flow control. RateLimiter will block if the context is too far ahead of the 26 // context outside of normal flow control. RateLimiter will block if the context is too far ahead of the
27 // compositor. 27 // compositor.
(...skipping 16 matching lines...) Expand all
44 44
45 WebKit::WebGraphicsContext3D* m_context; 45 WebKit::WebGraphicsContext3D* m_context;
46 bool m_active; 46 bool m_active;
47 RateLimiterClient *m_client; 47 RateLimiterClient *m_client;
48 }; 48 };
49 49
50 } 50 }
51 #endif // USE(ACCELERATED_COMPOSITING) 51 #endif // USE(ACCELERATED_COMPOSITING)
52 52
53 #endif 53 #endif
OLDNEW
« no previous file with comments | « cc/ProgramBinding.cpp ('k') | cc/RateLimiter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698