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 extern "C" { | 5 extern "C" { |
6 #include <X11/Xlib.h> | 6 #include <X11/Xlib.h> |
7 } | 7 } |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 return true; | 182 return true; |
183 } | 183 } |
184 | 184 |
185 void GLImageGLX::ReleaseTexImage(unsigned target) { | 185 void GLImageGLX::ReleaseTexImage(unsigned target) { |
186 DCHECK_NE(0u, glx_pixmap_); | 186 DCHECK_NE(0u, glx_pixmap_); |
187 DCHECK_EQ(static_cast<GLenum>(GL_TEXTURE_2D), target); | 187 DCHECK_EQ(static_cast<GLenum>(GL_TEXTURE_2D), target); |
188 | 188 |
189 glXReleaseTexImageEXT(gfx::GetXDisplay(), glx_pixmap_, GLX_FRONT_LEFT_EXT); | 189 glXReleaseTexImageEXT(gfx::GetXDisplay(), glx_pixmap_, GLX_FRONT_LEFT_EXT); |
190 } | 190 } |
191 | 191 |
192 bool GLImageGLX::CopyTexImage(unsigned target) { | 192 bool GLImageGLX::CopyTexSubImage(unsigned target, |
| 193 const Point& offset, |
| 194 const Rect& rect) { |
193 return false; | 195 return false; |
194 } | 196 } |
195 | 197 |
196 bool GLImageGLX::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 198 bool GLImageGLX::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
197 int z_order, | 199 int z_order, |
198 OverlayTransform transform, | 200 OverlayTransform transform, |
199 const Rect& bounds_rect, | 201 const Rect& bounds_rect, |
200 const RectF& crop_rect) { | 202 const RectF& crop_rect) { |
201 return false; | 203 return false; |
202 } | 204 } |
203 | 205 |
204 } // namespace gfx | 206 } // namespace gfx |
OLD | NEW |