| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 bool GLSurface::Initialize() { | 78 bool GLSurface::Initialize() { |
| 79 return true; | 79 return true; |
| 80 } | 80 } |
| 81 | 81 |
| 82 bool GLSurface::Resize(const gfx::Size& size) { | 82 bool GLSurface::Resize(const gfx::Size& size) { |
| 83 NOTIMPLEMENTED(); | 83 NOTIMPLEMENTED(); |
| 84 return false; | 84 return false; |
| 85 } | 85 } |
| 86 | 86 |
| 87 bool GLSurface::Recreate() { |
| 88 NOTIMPLEMENTED(); |
| 89 return false; |
| 90 } |
| 91 |
| 87 bool GLSurface::DeferDraws() { | 92 bool GLSurface::DeferDraws() { |
| 88 return false; | 93 return false; |
| 89 } | 94 } |
| 90 | 95 |
| 91 std::string GLSurface::GetExtensions() { | 96 std::string GLSurface::GetExtensions() { |
| 92 return std::string(""); | 97 return std::string(""); |
| 93 } | 98 } |
| 94 | 99 |
| 95 bool GLSurface::HasExtension(const char* name) { | 100 bool GLSurface::HasExtension(const char* name) { |
| 96 std::string extensions = GetExtensions(); | 101 std::string extensions = GetExtensions(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 } | 183 } |
| 179 | 184 |
| 180 void GLSurfaceAdapter::Destroy() { | 185 void GLSurfaceAdapter::Destroy() { |
| 181 surface_->Destroy(); | 186 surface_->Destroy(); |
| 182 } | 187 } |
| 183 | 188 |
| 184 bool GLSurfaceAdapter::Resize(const gfx::Size& size) { | 189 bool GLSurfaceAdapter::Resize(const gfx::Size& size) { |
| 185 return surface_->Resize(size); | 190 return surface_->Resize(size); |
| 186 } | 191 } |
| 187 | 192 |
| 193 bool GLSurfaceAdapter::Recreate() { |
| 194 return surface_->Recreate(); |
| 195 } |
| 196 |
| 188 bool GLSurfaceAdapter::DeferDraws() { | 197 bool GLSurfaceAdapter::DeferDraws() { |
| 189 return surface_->DeferDraws(); | 198 return surface_->DeferDraws(); |
| 190 } | 199 } |
| 191 | 200 |
| 192 bool GLSurfaceAdapter::IsOffscreen() { | 201 bool GLSurfaceAdapter::IsOffscreen() { |
| 193 return surface_->IsOffscreen(); | 202 return surface_->IsOffscreen(); |
| 194 } | 203 } |
| 195 | 204 |
| 196 bool GLSurfaceAdapter::SwapBuffers() { | 205 bool GLSurfaceAdapter::SwapBuffers() { |
| 197 return surface_->SwapBuffers(); | 206 return surface_->SwapBuffers(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 return surface_->GetFormat(); | 254 return surface_->GetFormat(); |
| 246 } | 255 } |
| 247 | 256 |
| 248 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { | 257 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { |
| 249 return surface_->GetVSyncProvider(); | 258 return surface_->GetVSyncProvider(); |
| 250 } | 259 } |
| 251 | 260 |
| 252 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 261 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 253 | 262 |
| 254 } // namespace gfx | 263 } // namespace gfx |
| OLD | NEW |