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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 void* GLSurface::GetConfig() { | 140 void* GLSurface::GetConfig() { |
141 NOTIMPLEMENTED(); | 141 NOTIMPLEMENTED(); |
142 return NULL; | 142 return NULL; |
143 } | 143 } |
144 | 144 |
145 unsigned GLSurface::GetFormat() { | 145 unsigned GLSurface::GetFormat() { |
146 NOTIMPLEMENTED(); | 146 NOTIMPLEMENTED(); |
147 return 0; | 147 return 0; |
148 } | 148 } |
149 | 149 |
150 bool GLSurface::GetVSyncParameters(base::TimeTicks* timebase, | |
151 base::TimeDelta* interval) { | |
jonathan.backer
2012/10/31 13:12:02
nit: indentation
ajuma
2012/10/31 13:50:00
Fixed.
| |
152 return false; | |
153 } | |
154 | |
150 GLSurface* GLSurface::GetCurrent() { | 155 GLSurface* GLSurface::GetCurrent() { |
151 return current_surface_.Pointer()->Get(); | 156 return current_surface_.Pointer()->Get(); |
152 } | 157 } |
153 | 158 |
154 GLSurface::~GLSurface() { | 159 GLSurface::~GLSurface() { |
155 if (GetCurrent() == this) | 160 if (GetCurrent() == this) |
156 SetCurrent(NULL); | 161 SetCurrent(NULL); |
157 } | 162 } |
158 | 163 |
159 void GLSurface::SetCurrent(GLSurface* surface) { | 164 void GLSurface::SetCurrent(GLSurface* surface) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
244 } | 249 } |
245 | 250 |
246 void* GLSurfaceAdapter::GetConfig() { | 251 void* GLSurfaceAdapter::GetConfig() { |
247 return surface_->GetConfig(); | 252 return surface_->GetConfig(); |
248 } | 253 } |
249 | 254 |
250 unsigned GLSurfaceAdapter::GetFormat() { | 255 unsigned GLSurfaceAdapter::GetFormat() { |
251 return surface_->GetFormat(); | 256 return surface_->GetFormat(); |
252 } | 257 } |
253 | 258 |
259 bool GLSurfaceAdapter::GetVSyncParameters(base::TimeTicks* timebase, | |
260 base::TimeDelta* interval) { | |
261 return surface_->GetVSyncParameters(timebase, interval); | |
262 } | |
263 | |
254 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 264 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
255 | 265 |
256 } // namespace gfx | 266 } // namespace gfx |
OLD | NEW |