Fix crash on key events in touchview.
[chromium-blink-merge.git] / ui / gl / gl_image_stub.cc
blobd789ce50e68fa9b26fbb0bb5b9c92d04261393de
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/gl/gl_image_stub.h"
7 namespace gfx {
9 GLImageStub::GLImageStub() {}
11 GLImageStub::~GLImageStub() { Destroy(); }
13 gfx::Size GLImageStub::GetSize() { return gfx::Size(1, 1); }
15 bool GLImageStub::BindTexImage(unsigned target) { return true; }
17 } // namespace gfx