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

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

Issue 1950763002: Remove abstractions around GLuint and GL constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "platform/graphics/gpu/SharedContextRateLimiter.h" 5 #include "platform/graphics/gpu/SharedContextRateLimiter.h"
6 6
7 #include "gpu/GLES2/gl2extchromium.h"
7 #include "platform/graphics/gpu/Extensions3DUtil.h" 8 #include "platform/graphics/gpu/Extensions3DUtil.h"
8 #include "public/platform/Platform.h" 9 #include "public/platform/Platform.h"
9 #include "public/platform/WebGraphicsContext3DProvider.h" 10 #include "public/platform/WebGraphicsContext3DProvider.h"
10 11 #include "third_party/khronos/GLES2/gl2.h"
11 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM
12 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7
13 #endif
14 12
15 namespace blink { 13 namespace blink {
16 14
17 PassOwnPtr<SharedContextRateLimiter> SharedContextRateLimiter::create(unsigned m axPendingTicks) 15 PassOwnPtr<SharedContextRateLimiter> SharedContextRateLimiter::create(unsigned m axPendingTicks)
18 { 16 {
19 return adoptPtr(new SharedContextRateLimiter(maxPendingTicks)); 17 return adoptPtr(new SharedContextRateLimiter(maxPendingTicks));
20 } 18 }
21 19
22 SharedContextRateLimiter::SharedContextRateLimiter(unsigned maxPendingTicks) 20 SharedContextRateLimiter::SharedContextRateLimiter(unsigned maxPendingTicks)
23 : m_maxPendingTicks(maxPendingTicks) 21 : m_maxPendingTicks(maxPendingTicks)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 while (m_queries.size() > 0) { 72 while (m_queries.size() > 0) {
75 gl->DeleteQueriesEXT(1, &m_queries.first()); 73 gl->DeleteQueriesEXT(1, &m_queries.first());
76 m_queries.removeFirst(); 74 m_queries.removeFirst();
77 } 75 }
78 } else { 76 } else {
79 m_queries.clear(); 77 m_queries.clear();
80 } 78 }
81 } 79 }
82 80
83 } // namespace blink 81 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698