| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gl/gl_image_stub.h" | 5 #include "ui/gl/gl_image_stub.h" |
| 6 | 6 |
| 7 #include <GL/gl.h> | 7 #include <GL/gl.h> |
| 8 | 8 |
| 9 namespace gl { | 9 namespace gl { |
| 10 | 10 |
| 11 GLImageStub::GLImageStub() {} | 11 GLImageStub::GLImageStub() {} |
| 12 | 12 |
| 13 GLImageStub::~GLImageStub() {} | 13 GLImageStub::~GLImageStub() {} |
| 14 | 14 |
| 15 gfx::Size GLImageStub::GetSize() { | 15 gfx::Size GLImageStub::GetSize() { |
| 16 return gfx::Size(1, 1); | 16 return gfx::Size(1, 1); |
| 17 } | 17 } |
| 18 | 18 |
| 19 unsigned GLImageStub::GetInternalFormat() { return GL_RGBA; } | 19 unsigned GLImageStub::GetInternalFormat() { return GL_RGBA; } |
| 20 | 20 |
| 21 bool GLImageStub::BindTexImage(unsigned target) { return true; } | 21 bool GLImageStub::BindTexImage(unsigned target, GLFence* fence) { |
| 22 return true; |
| 23 } |
| 22 | 24 |
| 23 bool GLImageStub::CopyTexImage(unsigned target) { | 25 bool GLImageStub::CopyTexImage(unsigned target) { |
| 24 return true; | 26 return true; |
| 25 } | 27 } |
| 26 | 28 |
| 27 bool GLImageStub::CopyTexSubImage(unsigned target, | 29 bool GLImageStub::CopyTexSubImage(unsigned target, |
| 28 const gfx::Point& offset, | 30 const gfx::Point& offset, |
| 29 const gfx::Rect& rect) { | 31 const gfx::Rect& rect) { |
| 30 return true; | 32 return true; |
| 31 } | 33 } |
| 32 | 34 |
| 33 bool GLImageStub::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 35 bool GLImageStub::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 34 int z_order, | 36 int z_order, |
| 35 gfx::OverlayTransform transform, | 37 gfx::OverlayTransform transform, |
| 36 const gfx::Rect& bounds_rect, | 38 const gfx::Rect& bounds_rect, |
| 37 const gfx::RectF& crop_rect) { | 39 const gfx::RectF& crop_rect) { |
| 38 return false; | 40 return false; |
| 39 } | 41 } |
| 40 | 42 |
| 41 } // namespace gl | 43 } // namespace gl |
| OLD | NEW |