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

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

Issue 1390143002: Revert of Re-land: ui: Add GLImage unit test framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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_context.cc ('k') | ui/gl/gl_image_io_surface.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_gl_api_implementation.h" 5 #include "ui/gl/gl_gl_api_implementation.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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 void SetGLApiToNoContext() { 328 void SetGLApiToNoContext() {
329 SetGLApi(g_no_context_gl); 329 SetGLApi(g_no_context_gl);
330 } 330 }
331 331
332 const GLVersionInfo* GetGLVersionInfo() { 332 const GLVersionInfo* GetGLVersionInfo() {
333 return g_version_info; 333 return g_version_info;
334 } 334 }
335 335
336 void InitializeDynamicGLBindingsGL(GLContext* context) { 336 void InitializeDynamicGLBindingsGL(GLContext* context) {
337 if (g_version_info)
338 return;
339 g_real_gl->InitializeFilteredExtensions(); 337 g_real_gl->InitializeFilteredExtensions();
340 g_driver_gl.InitializeCustomDynamicBindings(context); 338 g_driver_gl.InitializeCustomDynamicBindings(context);
341 DCHECK(context && context->IsCurrent(NULL) && !g_version_info); 339 DCHECK(context && context->IsCurrent(NULL) && !g_version_info);
342 g_version_info = new GLVersionInfo( 340 g_version_info = new GLVersionInfo(
343 context->GetGLVersion().c_str(), 341 context->GetGLVersion().c_str(),
344 context->GetGLRenderer().c_str(), 342 context->GetGLRenderer().c_str(),
345 context->GetExtensions().c_str()); 343 context->GetExtensions().c_str());
346 } 344 }
347 345
348 void InitializeDebugGLBindingsGL() { 346 void InitializeDebugGLBindingsGL() {
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 609
612 void VirtualGLApi::glFlushFn() { 610 void VirtualGLApi::glFlushFn() {
613 GLApiBase::glFlushFn(); 611 GLApiBase::glFlushFn();
614 } 612 }
615 613
616 void VirtualGLApi::glFinishFn() { 614 void VirtualGLApi::glFinishFn() {
617 GLApiBase::glFinishFn(); 615 GLApiBase::glFinishFn();
618 } 616 }
619 617
620 } // namespace gfx 618 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_context.cc ('k') | ui/gl/gl_image_io_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698