Guard ANGLE and MESA instead of defining them as native when unsupported.
authormtklein <mtklein@chromium.org>
Thu, 14 Aug 2014 17:36:55 +0000 (10:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 14 Aug 2014 17:36:55 +0000 (10:36 -0700)
commit60c7707958a542112add1dcb246cdf9135dda870
treef3a818a2e0691c4631e01c77254ed480a44bae87
parent9f1ae465c89bb47f4cbf972bc946f661d6d50b4e
Guard ANGLE and MESA instead of defining them as native when unsupported.

Since we've added "angle" to the default list of configs we've been running
kNative_GLContextType tests twice in DM, once for the real native, once for
angle.  This pointlessly doubles the GPU critical path in DM.  Whoops.

NOTREECHECKS=true

BUG=skia:
R=bsalomon@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/471063002
dm/DM.cpp