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

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

Issue 749483002: Allow Windows to use system Vsync if only one window is swapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Linux nit Created 5 years, 11 months 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
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return false; 283 return false;
284 std::string extensions(c_extensions); 284 std::string extensions(c_extensions);
285 extensions += " "; 285 extensions += " ";
286 286
287 std::string delimited_name(name); 287 std::string delimited_name(name);
288 delimited_name += " "; 288 delimited_name += " ";
289 289
290 return extensions.find(delimited_name) != std::string::npos; 290 return extensions.find(delimited_name) != std::string::npos;
291 } 291 }
292 292
293 void GLSurface::OnSetSwapInterval(int interval) {
294 }
295
293 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} 296 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {}
294 297
295 bool GLSurfaceAdapter::Initialize() { 298 bool GLSurfaceAdapter::Initialize() {
296 return surface_->Initialize(); 299 return surface_->Initialize();
297 } 300 }
298 301
299 void GLSurfaceAdapter::Destroy() { 302 void GLSurfaceAdapter::Destroy() {
300 surface_->Destroy(); 303 surface_->Destroy();
301 } 304 }
302 305
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 z_order, transform, image, bounds_rect, crop_rect); 395 z_order, transform, image, bounds_rect, crop_rect);
393 } 396 }
394 397
395 bool GLSurfaceAdapter::IsSurfaceless() const { 398 bool GLSurfaceAdapter::IsSurfaceless() const {
396 return surface_->IsSurfaceless(); 399 return surface_->IsSurfaceless();
397 } 400 }
398 401
399 GLSurfaceAdapter::~GLSurfaceAdapter() {} 402 GLSurfaceAdapter::~GLSurfaceAdapter() {}
400 403
401 } // namespace gfx 404 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698