| 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 "gpu/command_buffer/service/gl_context_virtual.h" | 5 #include "gpu/command_buffer/service/gl_context_virtual.h" |
| 6 | 6 |
| 7 #include "gpu/command_buffer/service/gl_state_restorer_impl.h" | 7 #include "gpu/command_buffer/service/gl_state_restorer_impl.h" |
| 8 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 8 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 9 #include "ui/gl/gl_surface.h" | 9 #include "ui/gl/gl_surface.h" |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 | 102 |
| 103 void GLContextVirtual::SetUnbindFboOnMakeCurrent() { | 103 void GLContextVirtual::SetUnbindFboOnMakeCurrent() { |
| 104 shared_context_->SetUnbindFboOnMakeCurrent(); | 104 shared_context_->SetUnbindFboOnMakeCurrent(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 GLContextVirtual::~GLContextVirtual() { | 107 GLContextVirtual::~GLContextVirtual() { |
| 108 Destroy(); | 108 Destroy(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 bool GLContextVirtual::IsVirtualContext() { |
| 112 return true; |
| 113 } |
| 114 |
| 111 } // namespace gpu | 115 } // namespace gpu |
| OLD | NEW |