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

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

Issue 670683003: Standardize usage of virtual/override/final in content/renderer/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 "chrome.gpuBenchmarking.sendMessageToMicroBenchmark =" 331 "chrome.gpuBenchmarking.sendMessageToMicroBenchmark ="
332 " function(id, arguments) {" 332 " function(id, arguments) {"
333 " native function SendMessageToMicroBenchmark();" 333 " native function SendMessageToMicroBenchmark();"
334 " return SendMessageToMicroBenchmark(id, arguments);" 334 " return SendMessageToMicroBenchmark(id, arguments);"
335 "};" 335 "};"
336 "chrome.gpuBenchmarking.hasGpuProcess = function() {" 336 "chrome.gpuBenchmarking.hasGpuProcess = function() {"
337 " native function HasGpuProcess();" 337 " native function HasGpuProcess();"
338 " return HasGpuProcess();" 338 " return HasGpuProcess();"
339 "};") {} 339 "};") {}
340 340
341 virtual v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate( 341 v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
342 v8::Isolate* isolate, 342 v8::Isolate* isolate,
343 v8::Handle<v8::String> name) override { 343 v8::Handle<v8::String> name) override {
344 if (name->Equals( 344 if (name->Equals(
345 v8::String::NewFromUtf8(isolate, "SetNeedsDisplayOnAllLayers"))) 345 v8::String::NewFromUtf8(isolate, "SetNeedsDisplayOnAllLayers")))
346 return v8::FunctionTemplate::New(isolate, SetNeedsDisplayOnAllLayers); 346 return v8::FunctionTemplate::New(isolate, SetNeedsDisplayOnAllLayers);
347 if (name->Equals( 347 if (name->Equals(
348 v8::String::NewFromUtf8(isolate, "SetRasterizeOnlyVisibleContent"))) 348 v8::String::NewFromUtf8(isolate, "SetRasterizeOnlyVisibleContent")))
349 return v8::FunctionTemplate::New(isolate, SetRasterizeOnlyVisibleContent); 349 return v8::FunctionTemplate::New(isolate, SetRasterizeOnlyVisibleContent);
350 if (name->Equals(v8::String::NewFromUtf8(isolate, "PrintToSkPicture"))) 350 if (name->Equals(v8::String::NewFromUtf8(isolate, "PrintToSkPicture")))
351 return v8::FunctionTemplate::New(isolate, PrintToSkPicture); 351 return v8::FunctionTemplate::New(isolate, PrintToSkPicture);
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel(); 914 GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel();
915 args.GetReturnValue().Set(!!gpu_channel); 915 args.GetReturnValue().Set(!!gpu_channel);
916 } 916 }
917 }; 917 };
918 918
919 v8::Extension* GpuBenchmarkingExtension::Get() { 919 v8::Extension* GpuBenchmarkingExtension::Get() {
920 return new GpuBenchmarkingWrapper(); 920 return new GpuBenchmarkingWrapper();
921 } 921 }
922 922
923 } // namespace content 923 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/frame_swap_message_queue_unittest.cc ('k') | content/renderer/gpu/mailbox_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698