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

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

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 return false; 284 return false;
285 std::string extensions(c_extensions); 285 std::string extensions(c_extensions);
286 extensions += " "; 286 extensions += " ";
287 287
288 std::string delimited_name(name); 288 std::string delimited_name(name);
289 delimited_name += " "; 289 delimited_name += " ";
290 290
291 return extensions.find(delimited_name) != std::string::npos; 291 return extensions.find(delimited_name) != std::string::npos;
292 } 292 }
293 293
294 void GLSurface::OnSetSwapInterval(int interval) {
295 }
296
294 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} 297 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {}
295 298
296 bool GLSurfaceAdapter::Initialize() { 299 bool GLSurfaceAdapter::Initialize() {
297 return surface_->Initialize(); 300 return surface_->Initialize();
298 } 301 }
299 302
300 void GLSurfaceAdapter::Destroy() { 303 void GLSurfaceAdapter::Destroy() {
301 surface_->Destroy(); 304 surface_->Destroy();
302 } 305 }
303 306
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 z_order, transform, image, bounds_rect, crop_rect); 396 z_order, transform, image, bounds_rect, crop_rect);
394 } 397 }
395 398
396 bool GLSurfaceAdapter::IsSurfaceless() const { 399 bool GLSurfaceAdapter::IsSurfaceless() const {
397 return surface_->IsSurfaceless(); 400 return surface_->IsSurfaceless();
398 } 401 }
399 402
400 GLSurfaceAdapter::~GLSurfaceAdapter() {} 403 GLSurfaceAdapter::~GLSurfaceAdapter() {}
401 404
402 } // namespace gfx 405 } // 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