Commit bc68aa1a authored by nduca@chromium.org's avatar nduca@chromium.org

Make SetSwapInterval a log warning rather than a notreached.

TBR=apatrick@chromium.org

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86749 0039d316-1c4b-4281-b951-d872f2087c98
parent 88818bd7
...@@ -102,7 +102,7 @@ void* GLContextCGL::GetHandle() { ...@@ -102,7 +102,7 @@ void* GLContextCGL::GetHandle() {
void GLContextCGL::SetSwapInterval(int interval) { void GLContextCGL::SetSwapInterval(int interval) {
DCHECK(IsCurrent(NULL)); DCHECK(IsCurrent(NULL));
NOTREACHED() << "Attempt to call SetSwapInterval on a GLContextCGL."; LOG(WARNING) << "GLContex: GLContextCGL::SetSwapInterval is ignored.";
} }
} // namespace gfx } // namespace gfx
...@@ -102,7 +102,7 @@ void* GLContextOSMesa::GetHandle() { ...@@ -102,7 +102,7 @@ void* GLContextOSMesa::GetHandle() {
void GLContextOSMesa::SetSwapInterval(int interval) { void GLContextOSMesa::SetSwapInterval(int interval) {
DCHECK(IsCurrent(NULL)); DCHECK(IsCurrent(NULL));
NOTREACHED() << "Attempt to call SetSwapInterval on an GLContextOSMesa."; LOG(WARNING) << "GLContextOSMesa::SetSwapInterval is ignored.";
} }
} // namespace gfx } // namespace gfx
...@@ -111,6 +111,10 @@ void GLContextWGL::SetSwapInterval(int interval) { ...@@ -111,6 +111,10 @@ void GLContextWGL::SetSwapInterval(int interval) {
DCHECK(IsCurrent(NULL)); DCHECK(IsCurrent(NULL));
if (HasExtension("WGL_EXT_swap_control") && wglSwapIntervalEXT) { if (HasExtension("WGL_EXT_swap_control") && wglSwapIntervalEXT) {
wglSwapIntervalEXT(interval); wglSwapIntervalEXT(interval);
} else {
LOG(WARNING) <<
"Could not disable vsync: driver does not "
"support WGL_EXT_swap_control";
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment