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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 unsigned GLSurface::GetFormat() { | 139 unsigned GLSurface::GetFormat() { |
140 NOTIMPLEMENTED(); | 140 NOTIMPLEMENTED(); |
141 return 0; | 141 return 0; |
142 } | 142 } |
143 | 143 |
144 VSyncProvider* GLSurface::GetVSyncProvider() { | 144 VSyncProvider* GLSurface::GetVSyncProvider() { |
145 return NULL; | 145 return NULL; |
146 } | 146 } |
147 | 147 |
| 148 void GLSurface::SetMaximumFrameLatency(unsigned int frames) { |
| 149 NOTIMPLEMENTED(); |
| 150 } |
| 151 |
148 GLSurface* GLSurface::GetCurrent() { | 152 GLSurface* GLSurface::GetCurrent() { |
149 return current_surface_.Pointer()->Get(); | 153 return current_surface_.Pointer()->Get(); |
150 } | 154 } |
151 | 155 |
152 GLSurface::~GLSurface() { | 156 GLSurface::~GLSurface() { |
153 if (GetCurrent() == this) | 157 if (GetCurrent() == this) |
154 SetCurrent(NULL); | 158 SetCurrent(NULL); |
155 } | 159 } |
156 | 160 |
157 void GLSurface::SetCurrent(GLSurface* surface) { | 161 void GLSurface::SetCurrent(GLSurface* surface) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 return surface_->GetFormat(); | 249 return surface_->GetFormat(); |
246 } | 250 } |
247 | 251 |
248 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { | 252 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { |
249 return surface_->GetVSyncProvider(); | 253 return surface_->GetVSyncProvider(); |
250 } | 254 } |
251 | 255 |
252 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 256 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
253 | 257 |
254 } // namespace gfx | 258 } // namespace gfx |
OLD | NEW |