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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 return initialized; | 73 return initialized; |
74 } | 74 } |
75 | 75 |
76 GLSurface::GLSurface() {} | 76 GLSurface::GLSurface() {} |
77 | 77 |
78 bool GLSurface::Initialize() { | 78 bool GLSurface::Initialize() { |
79 return true; | 79 return true; |
80 } | 80 } |
81 | 81 |
| 82 bool GLSurface::Initialize(VSyncProvider* syncProvider) { |
| 83 return Initialize(); |
| 84 } |
| 85 |
82 bool GLSurface::Resize(const gfx::Size& size) { | 86 bool GLSurface::Resize(const gfx::Size& size) { |
83 NOTIMPLEMENTED(); | 87 NOTIMPLEMENTED(); |
84 return false; | 88 return false; |
85 } | 89 } |
86 | 90 |
87 bool GLSurface::Recreate() { | 91 bool GLSurface::Recreate() { |
88 NOTIMPLEMENTED(); | 92 NOTIMPLEMENTED(); |
89 return false; | 93 return false; |
90 } | 94 } |
91 | 95 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 return surface_->GetFormat(); | 258 return surface_->GetFormat(); |
255 } | 259 } |
256 | 260 |
257 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { | 261 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { |
258 return surface_->GetVSyncProvider(); | 262 return surface_->GetVSyncProvider(); |
259 } | 263 } |
260 | 264 |
261 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 265 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
262 | 266 |
263 } // namespace gfx | 267 } // namespace gfx |
OLD | NEW |