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_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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 void VirtualGLApi::glFlushFn() { | 485 void VirtualGLApi::glFlushFn() { |
486 GLApiBase::glFlushFn(); | 486 GLApiBase::glFlushFn(); |
487 GLApiBase::SignalFlush(); | 487 GLApiBase::SignalFlush(); |
488 } | 488 } |
489 | 489 |
490 void VirtualGLApi::glFinishFn() { | 490 void VirtualGLApi::glFinishFn() { |
491 GLApiBase::glFinishFn(); | 491 GLApiBase::glFinishFn(); |
492 GLApiBase::SignalFlush(); | 492 GLApiBase::SignalFlush(); |
493 } | 493 } |
494 | 494 |
495 ScopedSetGLToRealGLApi::ScopedSetGLToRealGLApi() | |
496 : old_gl_api_(GetCurrentGLApi()) { | |
497 SetGLToRealGLApi(); | |
498 } | |
499 | |
500 ScopedSetGLToRealGLApi::~ScopedSetGLToRealGLApi() { | |
501 SetGLApi(old_gl_api_); | |
502 } | |
503 | |
504 } // namespace gfx | 495 } // namespace gfx |
OLD | NEW |