aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/views/SkOSWindow_Mac.h
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-02 19:24:21 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-02 19:24:21 +0000
commitb442a6d5726569364e15c3056bbfb59b9b6e38ce (patch)
treebd1224ecf823d4ac53831ae85ef34b2c523cd505 /include/views/SkOSWindow_Mac.h
parentf3df5254ca21ff07c0b60d7b7cbb3a50f89a22b4 (diff)
Redelivering r3555 to re-add run-time switching between ANGLE and native opengl
Diffstat (limited to 'include/views/SkOSWindow_Mac.h')
-rw-r--r--include/views/SkOSWindow_Mac.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/views/SkOSWindow_Mac.h b/include/views/SkOSWindow_Mac.h
index b09f1dd5e4..01fa29f334 100644
--- a/include/views/SkOSWindow_Mac.h
+++ b/include/views/SkOSWindow_Mac.h
@@ -19,9 +19,15 @@ public:
virtual bool onDispatchClick(int x, int y, Click::State state,
void* owner);
- void detachGL();
- bool attachGL();
- void presentGL();
+
+ enum SkBackEndTypes {
+ kNone_BackEndType,
+ kNativeGL_BackEndType,
+ };
+
+ void detach();
+ bool attach(SkBackEndTypes attachType);
+ void present();
protected:
// overrides from SkEventSink