Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698