Add AVX/AVX2 support for runtime check

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867193002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review URL: https://codereview.chromium.org/1867193002
This commit is contained in:
Melnikov.Sergey.V 2016-04-08 15:31:45 -07:00 committed by Commit bot
parent e6356546d8
commit 601e36a5c5
2 changed files with 14 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Opera Software ASA <*@opera.com>
Pavel Krajcevski <pavel@cs.unc.edu>
Samsung <*@samsung.com>
Samsung Open Source Group <*@osg.samsung.com>
Sergey Melnikov <Melnikov.Sergey.V@gmail.com>
Skia <*@skia.org>
Skia Buildbots <skia.buildbots@gmail.com>
Sony Mobile Communications Inc. <*@sonymobile.com>

View File

@ -15,6 +15,19 @@
#include "SkOncePtr.h"
#include "SkRTConf.h"
/*
*****************************************
*********This file is deprecated*********
*****************************************
* New CPU-specific work should be done in
* SkOpts framework. Run-time detection of
* available instruction set extensions is
* implemented in src/core/SkOpts.cpp file
*****************************************
*/
#if defined(_MSC_VER) && defined(_WIN64)
#include <intrin.h>
#endif