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

Side by Side Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 2824773002: Rename ScopedComPtr::get() to ScopedComPtr::Get() (Closed)
Patch Set: Update to 5293966 Created 3 years, 8 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 (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 "content/renderer/gpu/gpu_benchmarking_extension.h" 5 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); 533 COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
534 // In non-sandboxed mode, we will need to create and hold on to the 534 // In non-sandboxed mode, we will need to create and hold on to the
535 // factory before entering the sandbox. 535 // factory before entering the sandbox.
536 base::win::ScopedComPtr<IXpsOMObjectFactory> factory; 536 base::win::ScopedComPtr<IXpsOMObjectFactory> factory;
537 HRESULT hr = factory.CreateInstance(CLSID_XpsOMObjectFactory, nullptr, 537 HRESULT hr = factory.CreateInstance(CLSID_XpsOMObjectFactory, nullptr,
538 CLSCTX_INPROC_SERVER); 538 CLSCTX_INPROC_SERVER);
539 if (FAILED(hr) || !factory) { 539 if (FAILED(hr) || !factory) {
540 LOG(ERROR) << "CoCreateInstance(CLSID_XpsOMObjectFactory, ...) failed:" 540 LOG(ERROR) << "CoCreateInstance(CLSID_XpsOMObjectFactory, ...) failed:"
541 << logging::SystemErrorCodeToString(hr); 541 << logging::SystemErrorCodeToString(hr);
542 } 542 }
543 return SkDocument::MakeXPS(s, factory.get()); 543 return SkDocument::MakeXPS(s, factory.Get());
544 } 544 }
545 #endif 545 #endif
546 } // namespace 546 } // namespace
547 547
548 gin::WrapperInfo GpuBenchmarking::kWrapperInfo = {gin::kEmbedderNativeGin}; 548 gin::WrapperInfo GpuBenchmarking::kWrapperInfo = {gin::kEmbedderNativeGin};
549 549
550 // static 550 // static
551 void GpuBenchmarking::Install(blink::WebFrame* frame) { 551 void GpuBenchmarking::Install(blink::WebFrame* frame) {
552 v8::Isolate* isolate = blink::MainThreadIsolate(); 552 v8::Isolate* isolate = blink::MainThreadIsolate();
553 v8::HandleScope handle_scope(isolate); 553 v8::HandleScope handle_scope(isolate);
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 &gpu_driver_bug_workarounds))) { 1130 &gpu_driver_bug_workarounds))) {
1131 return; 1131 return;
1132 } 1132 }
1133 1133
1134 v8::Local<v8::Value> result; 1134 v8::Local<v8::Value> result;
1135 if (gin::TryConvertToV8(args->isolate(), gpu_driver_bug_workarounds, &result)) 1135 if (gin::TryConvertToV8(args->isolate(), gpu_driver_bug_workarounds, &result))
1136 args->Return(result); 1136 args->Return(result);
1137 } 1137 }
1138 1138
1139 } // namespace content 1139 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698