summaryrefslogtreecommitdiffstats
path: root/ui/gl
diff options
context:
space:
mode:
authorsievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-21 16:52:59 +0000
committersievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-21 16:52:59 +0000
commit367ca6e556eb8322426f2f51e4a12513f9a9230d (patch)
treeabd7aa141c293bdfe9027df72605722ad3af9297 /ui/gl
parente38823c4cf30f28b2207d7f4a0648d3a070db7da (diff)
downloadchromium_src-367ca6e556eb8322426f2f51e4a12513f9a9230d.zip
chromium_src-367ca6e556eb8322426f2f51e4a12513f9a9230d.tar.gz
chromium_src-367ca6e556eb8322426f2f51e4a12513f9a9230d.tar.bz2
Remove DCHECK() for being current in GLSurface::GetExtensions().
The DCHECK() does not play nicely with virtual contexts, and since there is no need for the context/surface to be current in the current code (the derived classes just add static extensions strings), I'm just removing it. BUG=180575 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/12621005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl')
-rw-r--r--ui/gl/gl_surface.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index 27cf923..2e945ed 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -89,10 +89,6 @@ bool GLSurface::DeferDraws() {
}
std::string GLSurface::GetExtensions() {
- // Use of GLSurfaceAdapter class means that we can't compare
- // GetCurrent() and this directly.
- DCHECK(GetCurrent()->GetHandle() == GetHandle() ||
- GetBackingFrameBufferObject());
return std::string("");
}