| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "app/gfx/gl/gl_context.h" | |
| 8 #include "app/gfx/gl/gl_bindings.h" | |
| 9 #include "app/gfx/gl/gl_implementation.h" | |
| 10 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 11 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "ui/gfx/gl/gl_context.h" |
| 10 #include "ui/gfx/gl/gl_bindings.h" |
| 11 #include "ui/gfx/gl/gl_implementation.h" |
| 12 #include "ui/gfx/gl/gl_switches.h" | 12 #include "ui/gfx/gl/gl_switches.h" |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 | 15 |
| 16 unsigned int GLContext::GetBackingFrameBufferObject() { | 16 unsigned int GLContext::GetBackingFrameBufferObject() { |
| 17 return 0; | 17 return 0; |
| 18 } | 18 } |
| 19 | 19 |
| 20 std::string GLContext::GetExtensions() { | 20 std::string GLContext::GetExtensions() { |
| 21 DCHECK(IsCurrent()); | 21 DCHECK(IsCurrent()); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 49 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); | 49 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); |
| 50 if (glGetError() != GL_NO_ERROR) { | 50 if (glGetError() != GL_NO_ERROR) { |
| 51 LOG(ERROR) << "glClear failed."; | 51 LOG(ERROR) << "glClear failed."; |
| 52 return false; | 52 return false; |
| 53 } | 53 } |
| 54 | 54 |
| 55 return true; | 55 return true; |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace gfx | 58 } // namespace gfx |
| OLD | NEW |