Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: ui/gl/gl_surface.cc

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_glx.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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) {
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
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
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_glx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698