aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-03-30 08:35:09 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-30 08:35:09 -0700
commitfe3456cb006110d045b26ff3f8681b893a757b58 (patch)
tree8d07fbc43230b807d0cf7174c79d5757c397b07f /samplecode
parentb4a7f144b41dbe8341d26abb71d87b13d072a5cf (diff)
Move SkGLContext and some GrGLInterface implementations to skgputest module
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1815823002 CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot Review URL: https://codereview.chromium.org/1815823002
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleApp.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index e0d152d97b..780eabd1e3 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -33,11 +33,14 @@
#include "sk_tool_utils.h"
#if SK_SUPPORT_GPU
-#include "gl/GrGLInterface.h"
-#include "gl/GrGLUtil.h"
-#include "GrRenderTarget.h"
-#include "GrContext.h"
-#include "SkGpuDevice.h"
+# include "gl/GrGLInterface.h"
+# include "gl/GrGLUtil.h"
+# include "GrRenderTarget.h"
+# include "GrContext.h"
+# include "SkGpuDevice.h"
+# if SK_ANGLE
+# include "gl/angle/GLContext_angle.h"
+# endif
#else
class GrContext;
#endif
@@ -233,7 +236,7 @@ public:
break;
#if SK_ANGLE
case kANGLE_DeviceType:
- glInterface.reset(GrGLCreateANGLEInterface());
+ glInterface.reset(sk_gpu_test::CreateANGLEGLInterface());
break;
#endif // SK_ANGLE
#if SK_COMMAND_BUFFER