| 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 "ui/gl/gl_surface.h" | 8 #include "ui/gl/gl_surface.h" |
| 9 | 9 |
| 10 namespace gpu { | 10 namespace gpu { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // TODO(ccameron): This will not work if two contexts that disagree | 95 // TODO(ccameron): This will not work if two contexts that disagree |
| 96 // about whether or not forced gpu switching may be done both share | 96 // about whether or not forced gpu switching may be done both share |
| 97 // the same underlying shared_context_. | 97 // the same underlying shared_context_. |
| 98 return shared_context_->SetSafeToForceGpuSwitch(); | 98 return shared_context_->SetSafeToForceGpuSwitch(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 bool GLContextVirtual::WasAllocatedUsingRobustnessExtension() { | 101 bool GLContextVirtual::WasAllocatedUsingRobustnessExtension() { |
| 102 return shared_context_->WasAllocatedUsingRobustnessExtension(); | 102 return shared_context_->WasAllocatedUsingRobustnessExtension(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void GLContextVirtual::SetRecreateSurfaceOnMakeCurrent() { |
| 106 shared_context_->SetRecreateSurfaceOnMakeCurrent(); |
| 107 } |
| 108 |
| 105 GLContextVirtual::~GLContextVirtual() { | 109 GLContextVirtual::~GLContextVirtual() { |
| 106 Destroy(); | 110 Destroy(); |
| 107 } | 111 } |
| 108 | 112 |
| 109 } // namespace gpu | 113 } // namespace gpu |
| OLD | NEW |