Commit 7dd9bf7c authored by Yuta Kitamura's avatar Yuta Kitamura Committed by Commit Bot

Fix compilation of image_decode_bench.

This binary was broken by me but left unnoticed because no bot executes
it. This test is simple and CreateMainThreadAndInitialize() would
suffice.

Bug: 826203
Change-Id: Icdf9e3941be862abbedc20086ee909447c28645f
Reviewed-on: https://chromium-review.googlesource.com/1206753Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Commit-Queue: Yuta Kitamura <yutak@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590176}
parent c68cd4c5
...@@ -124,12 +124,8 @@ int ImageDecodeBenchMain(int argc, char* argv[]) { ...@@ -124,12 +124,8 @@ int ImageDecodeBenchMain(int argc, char* argv[]) {
} }
} }
// Create a web platform. blink::Platform can't be used directly because it std::unique_ptr<Platform> platform = std::make_unique<Platform>();
// has a protected constructor. Platform::CreateMainThreadAndInitialize(platform.get());
class WebPlatform : public Platform {};
std::unique_ptr<WebPlatform> platform(new WebPlatform());
Platform::Initialize(platform.get(), platform->CurrentThread());
// Read entire file content into |data| (a contiguous block of memory) then // Read entire file content into |data| (a contiguous block of memory) then
// decode it to verify the image and record its ImageMeta data. // decode it to verify the image and record its ImageMeta data.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment