| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 158 |
| 159 void GLSurface::CommitOverlayPlanesAsync( | 159 void GLSurface::CommitOverlayPlanesAsync( |
| 160 const SwapCompletionCallback& callback) { | 160 const SwapCompletionCallback& callback) { |
| 161 NOTREACHED(); | 161 NOTREACHED(); |
| 162 } | 162 } |
| 163 | 163 |
| 164 bool GLSurface::OnMakeCurrent(GLContext* context) { | 164 bool GLSurface::OnMakeCurrent(GLContext* context) { |
| 165 return true; | 165 return true; |
| 166 } | 166 } |
| 167 | 167 |
| 168 void GLSurface::NotifyWasBound() { | |
| 169 } | |
| 170 | |
| 171 bool GLSurface::SetBackbufferAllocation(bool allocated) { | 168 bool GLSurface::SetBackbufferAllocation(bool allocated) { |
| 172 return true; | 169 return true; |
| 173 } | 170 } |
| 174 | 171 |
| 175 void GLSurface::SetFrontbufferAllocation(bool allocated) { | 172 void GLSurface::SetFrontbufferAllocation(bool allocated) { |
| 176 } | 173 } |
| 177 | 174 |
| 178 void* GLSurface::GetShareHandle() { | 175 void* GLSurface::GetShareHandle() { |
| 179 NOTIMPLEMENTED(); | 176 NOTIMPLEMENTED(); |
| 180 return NULL; | 177 return NULL; |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 return surface_->FlipsVertically(); | 396 return surface_->FlipsVertically(); |
| 400 } | 397 } |
| 401 | 398 |
| 402 bool GLSurfaceAdapter::BuffersFlipped() const { | 399 bool GLSurfaceAdapter::BuffersFlipped() const { |
| 403 return surface_->BuffersFlipped(); | 400 return surface_->BuffersFlipped(); |
| 404 } | 401 } |
| 405 | 402 |
| 406 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 403 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 407 | 404 |
| 408 } // namespace gfx | 405 } // namespace gfx |
| OLD | NEW |