| Index: ui/gl/gl_image_glx.cc
|
| diff --git a/ui/gl/gl_image_glx.cc b/ui/gl/gl_image_glx.cc
|
| index 61bd0971d00599d87b34bb5cd876d40ad89b7edd..846d81989117b1425c6412b6b4d96b952c6be6aa 100644
|
| --- a/ui/gl/gl_image_glx.cc
|
| +++ b/ui/gl/gl_image_glx.cc
|
| @@ -111,7 +111,9 @@ GLImageGLX::GLImageGLX(const gfx::Size& size, unsigned internalformat)
|
| : glx_pixmap_(0), size_(size), internalformat_(internalformat) {
|
| }
|
|
|
| -GLImageGLX::~GLImageGLX() { Destroy(); }
|
| +GLImageGLX::~GLImageGLX() {
|
| + DCHECK_EQ(0u, glx_pixmap_);
|
| +}
|
|
|
| bool GLImageGLX::Initialize(XID pixmap) {
|
| if (!GLSurfaceGLX::IsTextureFromPixmapSupported()) {
|
| @@ -160,7 +162,7 @@ bool GLImageGLX::Initialize(XID pixmap) {
|
| return true;
|
| }
|
|
|
| -void GLImageGLX::Destroy() {
|
| +void GLImageGLX::Destroy(bool have_context) {
|
| if (glx_pixmap_) {
|
| glXDestroyGLXPixmap(gfx::GetXDisplay(), glx_pixmap_);
|
| glx_pixmap_ = 0;
|
|
|