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

Unified Diff: ui/gl/gpu_timing.cc

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_mock_autogen_gl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gpu_timing.cc
diff --git a/ui/gl/gpu_timing.cc b/ui/gl/gpu_timing.cc
index a744164d91f6a1205518ccda6d92e90596a0d5e4..a84d3f76497bffe19efabfe78a30ecaab3a2f35c 100644
--- a/ui/gl/gpu_timing.cc
+++ b/ui/gl/gpu_timing.cc
@@ -44,7 +44,7 @@ uint32_t GPUTiming::GetDisjointCount() {
}
GPUTimer::~GPUTimer() {
- glDeleteQueriesARB(2, queries_);
+ glDeleteQueries(2, queries_);
}
void GPUTimer::Start() {
@@ -84,8 +84,8 @@ bool GPUTimer::IsAvailable() {
return false;
}
GLint done = 0;
- glGetQueryObjectivARB(queries_[1] ? queries_[1] : queries_[0],
- GL_QUERY_RESULT_AVAILABLE, &done);
+ glGetQueryObjectiv(queries_[1] ? queries_[1] : queries_[0],
+ GL_QUERY_RESULT_AVAILABLE, &done);
return done != 0;
}
@@ -145,7 +145,7 @@ GPUTimer::GPUTimer(scoped_refptr<GPUTimingClient> gpu_timing_client)
default:
NOTREACHED();
}
- glGenQueriesARB(queries, queries_);
+ glGenQueries(queries, queries_);
}
GPUTimingClient::GPUTimingClient(GPUTiming* gpu_timing)
« no previous file with comments | « ui/gl/gl_mock_autogen_gl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698