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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
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 #ifndef SharedContextRateLimiter_h 5 #ifndef SharedContextRateLimiter_h
6 #define SharedContextRateLimiter_h 6 #define SharedContextRateLimiter_h
7 7
8 #include <memory>
8 #include "gpu/command_buffer/client/gles2_interface.h" 9 #include "gpu/command_buffer/client/gles2_interface.h"
9 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
10 #include "wtf/Deque.h" 11 #include "wtf/Deque.h"
11 #include "wtf/Noncopyable.h" 12 #include "wtf/Noncopyable.h"
12 #include <memory>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class WebGraphicsContext3DProvider; 16 class WebGraphicsContext3DProvider;
17 17
18 // Purpose: to limit the amount of worked queued for execution 18 // Purpose: to limit the amount of worked queued for execution
19 // (backlog) on the GPU by blocking the main thread to allow the GPU 19 // (backlog) on the GPU by blocking the main thread to allow the GPU
20 // to catch up. The Prevents unsynchronized tight animation loops 20 // to catch up. The Prevents unsynchronized tight animation loops
21 // from cause a GPU denial of service. 21 // from cause a GPU denial of service.
22 // 22 //
(...skipping 27 matching lines...) Expand all
50 50
51 std::unique_ptr<WebGraphicsContext3DProvider> m_contextProvider; 51 std::unique_ptr<WebGraphicsContext3DProvider> m_contextProvider;
52 Deque<GLuint> m_queries; 52 Deque<GLuint> m_queries;
53 unsigned m_maxPendingTicks; 53 unsigned m_maxPendingTicks;
54 bool m_canUseSyncQueries; 54 bool m_canUseSyncQueries;
55 }; 55 };
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif 59 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698