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

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

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.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
« 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 return false; 259 return false;
260 std::string extensions(c_extensions); 260 std::string extensions(c_extensions);
261 extensions += " "; 261 extensions += " ";
262 262
263 std::string delimited_name(name); 263 std::string delimited_name(name);
264 delimited_name += " "; 264 delimited_name += " ";
265 265
266 return extensions.find(delimited_name) != std::string::npos; 266 return extensions.find(delimited_name) != std::string::npos;
267 } 267 }
268 268
269 void GLSurface::SetSwapInterval(int interval) {
270 }
271
272 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} 269 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {}
273 270
274 bool GLSurfaceAdapter::Initialize() { 271 bool GLSurfaceAdapter::Initialize() {
275 return surface_->Initialize(); 272 return surface_->Initialize();
276 } 273 }
277 274
278 void GLSurfaceAdapter::Destroy() { 275 void GLSurfaceAdapter::Destroy() {
279 surface_->Destroy(); 276 surface_->Destroy();
280 } 277 }
281 278
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 z_order, transform, image, bounds_rect, crop_rect); 357 z_order, transform, image, bounds_rect, crop_rect);
361 } 358 }
362 359
363 bool GLSurfaceAdapter::IsSurfaceless() const { 360 bool GLSurfaceAdapter::IsSurfaceless() const {
364 return surface_->IsSurfaceless(); 361 return surface_->IsSurfaceless();
365 } 362 }
366 363
367 GLSurfaceAdapter::~GLSurfaceAdapter() {} 364 GLSurfaceAdapter::~GLSurfaceAdapter() {}
368 365
369 } // namespace gfx 366 } // 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