Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 InitializeOneOffInternal(); | 62 InitializeOneOffInternal(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 if (initialized) { | 65 if (initialized) { |
| 66 DVLOG(1) << "Using " | 66 DVLOG(1) << "Using " |
| 67 << GetGLImplementationName(GetGLImplementation()) | 67 << GetGLImplementationName(GetGLImplementation()) |
| 68 << " GL implementation."; | 68 << " GL implementation."; |
| 69 if (CommandLine::ForCurrentProcess()->HasSwitch( | 69 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 70 switches::kEnableGPUServiceLogging)) | 70 switches::kEnableGPUServiceLogging)) |
| 71 InitializeDebugGLBindings(); | 71 InitializeDebugGLBindings(); |
| 72 if (CommandLine::ForCurrentProcess()->HasSwitch( | |
| 73 switches::kDisableGLDrawingForTests)) | |
| 74 InitializeStubGLBindings(); | |
|
no sievers
2013/12/20 23:27:58
The only caveat with that is that it would potenti
danakj
2013/12/20 23:29:38
Ya, I noticed for the debug bindings, the generate
| |
| 72 } | 75 } |
| 73 return initialized; | 76 return initialized; |
| 74 } | 77 } |
| 75 | 78 |
| 76 GLSurface::GLSurface() {} | 79 GLSurface::GLSurface() {} |
| 77 | 80 |
| 78 bool GLSurface::Initialize() { | 81 bool GLSurface::Initialize() { |
| 79 return true; | 82 return true; |
| 80 } | 83 } |
| 81 | 84 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 254 return surface_->GetFormat(); | 257 return surface_->GetFormat(); |
| 255 } | 258 } |
| 256 | 259 |
| 257 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { | 260 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { |
| 258 return surface_->GetVSyncProvider(); | 261 return surface_->GetVSyncProvider(); |
| 259 } | 262 } |
| 260 | 263 |
| 261 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 264 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 262 | 265 |
| 263 } // namespace gfx | 266 } // namespace gfx |
| OLD | NEW |