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_surface.h" | 5 #include "ui/gl/gl_surface.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 192 } |
193 | 193 |
194 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { | 194 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { |
195 return false; | 195 return false; |
196 } | 196 } |
197 | 197 |
198 bool GLSurface::OnMakeCurrent(GLContext* context) { | 198 bool GLSurface::OnMakeCurrent(GLContext* context) { |
199 return true; | 199 return true; |
200 } | 200 } |
201 | 201 |
| 202 void GLSurface::WasBound() { |
| 203 } |
| 204 |
202 bool GLSurface::SetBackbufferAllocation(bool allocated) { | 205 bool GLSurface::SetBackbufferAllocation(bool allocated) { |
203 return true; | 206 return true; |
204 } | 207 } |
205 | 208 |
206 void GLSurface::SetFrontbufferAllocation(bool allocated) { | 209 void GLSurface::SetFrontbufferAllocation(bool allocated) { |
207 } | 210 } |
208 | 211 |
209 void* GLSurface::GetShareHandle() { | 212 void* GLSurface::GetShareHandle() { |
210 NOTIMPLEMENTED(); | 213 NOTIMPLEMENTED(); |
211 return NULL; | 214 return NULL; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 z_order, transform, image, bounds_rect, crop_rect); | 363 z_order, transform, image, bounds_rect, crop_rect); |
361 } | 364 } |
362 | 365 |
363 bool GLSurfaceAdapter::IsSurfaceless() const { | 366 bool GLSurfaceAdapter::IsSurfaceless() const { |
364 return surface_->IsSurfaceless(); | 367 return surface_->IsSurfaceless(); |
365 } | 368 } |
366 | 369 |
367 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 370 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
368 | 371 |
369 } // namespace gfx | 372 } // namespace gfx |
OLD | NEW |