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

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

Issue 708483003: Allow Windows to use system Vsync for a single window each swap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 return false; 258 return false;
259 std::string extensions(c_extensions); 259 std::string extensions(c_extensions);
260 extensions += " "; 260 extensions += " ";
261 261
262 std::string delimited_name(name); 262 std::string delimited_name(name);
263 delimited_name += " "; 263 delimited_name += " ";
264 264
265 return extensions.find(delimited_name) != std::string::npos; 265 return extensions.find(delimited_name) != std::string::npos;
266 } 266 }
267 267
268 void GLSurface::SetSwapInterval(int interval) {
brianderson 2014/11/06 00:04:58 Is this empty implementation okay?
bajones 2014/11/06 00:09:56 Yes, because the only GLSurface implementation tha
269 }
270
268 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} 271 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {}
269 272
270 bool GLSurfaceAdapter::Initialize() { 273 bool GLSurfaceAdapter::Initialize() {
271 return surface_->Initialize(); 274 return surface_->Initialize();
272 } 275 }
273 276
274 void GLSurfaceAdapter::Destroy() { 277 void GLSurfaceAdapter::Destroy() {
275 surface_->Destroy(); 278 surface_->Destroy();
276 } 279 }
277 280
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 z_order, transform, image, bounds_rect, crop_rect); 359 z_order, transform, image, bounds_rect, crop_rect);
357 } 360 }
358 361
359 bool GLSurfaceAdapter::IsSurfaceless() const { 362 bool GLSurfaceAdapter::IsSurfaceless() const {
360 return surface_->IsSurfaceless(); 363 return surface_->IsSurfaceless();
361 } 364 }
362 365
363 GLSurfaceAdapter::~GLSurfaceAdapter() {} 366 GLSurfaceAdapter::~GLSurfaceAdapter() {}
364 367
365 } // namespace gfx 368 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | ui/gl/gl_surface_egl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698