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::GetSyncValues(int64* monotonicTime, |
| 151 int64* mediaStreamCounter, |
| 152 int64* swapBufferCounter) { |
| 153 return false; |
| 154 } |
| 155 |
150 GLSurface* GLSurface::GetCurrent() { | 156 GLSurface* GLSurface::GetCurrent() { |
151 return current_surface_.Pointer()->Get(); | 157 return current_surface_.Pointer()->Get(); |
152 } | 158 } |
153 | 159 |
154 GLSurface::~GLSurface() { | 160 GLSurface::~GLSurface() { |
155 if (GetCurrent() == this) | 161 if (GetCurrent() == this) |
156 SetCurrent(NULL); | 162 SetCurrent(NULL); |
157 } | 163 } |
158 | 164 |
159 void GLSurface::SetCurrent(GLSurface* surface) { | 165 void GLSurface::SetCurrent(GLSurface* surface) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 } | 250 } |
245 | 251 |
246 void* GLSurfaceAdapter::GetConfig() { | 252 void* GLSurfaceAdapter::GetConfig() { |
247 return surface_->GetConfig(); | 253 return surface_->GetConfig(); |
248 } | 254 } |
249 | 255 |
250 unsigned GLSurfaceAdapter::GetFormat() { | 256 unsigned GLSurfaceAdapter::GetFormat() { |
251 return surface_->GetFormat(); | 257 return surface_->GetFormat(); |
252 } | 258 } |
253 | 259 |
| 260 bool GLSurfaceAdapter::GetSyncValues(int64* monotonicTime, |
| 261 int64* mediaStreamCounter, |
| 262 int64* swapBufferCounter) { |
| 263 return surface_->GetSyncValues(monotonicTime, mediaStreamCounter, |
| 264 swapBufferCounter); |
| 265 } |
| 266 |
254 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 267 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
255 | 268 |
256 } // namespace gfx | 269 } // namespace gfx |
OLD | NEW |