| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/graphics/gpu/SharedGpuContext.h" | 5 #include "platform/graphics/gpu/SharedGpuContext.h" |
| 6 | 6 |
| 7 #include "gpu/command_buffer/client/gles2_interface.h" | 7 #include "gpu/command_buffer/client/gles2_interface.h" |
| 8 #include "gpu/command_buffer/common/capabilities.h" | 8 #include "gpu/command_buffer/common/capabilities.h" |
| 9 #include "platform/CrossThreadFunctional.h" | 9 #include "platform/CrossThreadFunctional.h" |
| 10 #include "platform/WaitableEvent.h" | 10 #include "platform/WaitableEvent.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 bool SharedGpuContext::AllowSoftwareToAcceleratedCanvasUpgrade() { | 129 bool SharedGpuContext::AllowSoftwareToAcceleratedCanvasUpgrade() { |
| 130 if (!IsValid()) | 130 if (!IsValid()) |
| 131 return kNoSharedContext; | 131 return kNoSharedContext; |
| 132 SharedGpuContext* this_ptr = GetInstanceForCurrentThread(); | 132 SharedGpuContext* this_ptr = GetInstanceForCurrentThread(); |
| 133 return this_ptr->context_provider_->GetCapabilities() | 133 return this_ptr->context_provider_->GetCapabilities() |
| 134 .software_to_accelerated_canvas_upgrade; | 134 .software_to_accelerated_canvas_upgrade; |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // blink | 137 } // namespace blink |
| OLD | NEW |