Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 1 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 2 | * Copyright 2011 Skia |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 3 | * |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
tfarina@chromium.org | f726a1c | 2012-09-29 12:40:30 +0000 | [diff] [blame] | 8 | #ifndef SampleApp_DEFINED |
| 9 | #define SampleApp_DEFINED |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 10 | |
tfarina@chromium.org | f726a1c | 2012-09-29 12:40:30 +0000 | [diff] [blame] | 11 | #include "SkOSMenu.h" |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 12 | #include "SkPath.h" |
robertphillips@google.com | 84b18c7 | 2014-04-13 19:09:42 +0000 | [diff] [blame] | 13 | #include "SkPicture.h" |
robertphillips@google.com | 770963f | 2014-04-18 18:04:41 +0000 | [diff] [blame] | 14 | #include "SkPictureRecorder.h" |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 15 | #include "SkScalar.h" |
| 16 | #include "SkTDArray.h" |
| 17 | #include "SkTouchGesture.h" |
| 18 | #include "SkWindow.h" |
| 19 | |
| 20 | class GrContext; |
reed@google.com | 29038ed | 2011-07-06 17:56:47 +0000 | [diff] [blame] | 21 | class GrRenderTarget; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 22 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 23 | class SkCanvas; |
tfarina@chromium.org | f726a1c | 2012-09-29 12:40:30 +0000 | [diff] [blame] | 24 | class SkData; |
reed | beedb81 | 2015-05-05 12:14:45 -0700 | [diff] [blame] | 25 | class SkDeferredCanvas; |
reed | ddb5eca | 2014-10-08 11:10:51 -0700 | [diff] [blame] | 26 | class SkDocument; |
tfarina@chromium.org | f726a1c | 2012-09-29 12:40:30 +0000 | [diff] [blame] | 27 | class SkEvent; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 28 | class SkTypeface; |
tfarina@chromium.org | f726a1c | 2012-09-29 12:40:30 +0000 | [diff] [blame] | 29 | class SkViewFactory; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 30 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 31 | class SampleWindow : public SkOSWindow { |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 32 | SkTDArray<const SkViewFactory*> fSamples; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 33 | public: |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 34 | enum DeviceType { |
| 35 | kRaster_DeviceType, |
| 36 | kPicture_DeviceType, |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 37 | #if SK_SUPPORT_GPU |
bsalomon@google.com | 7491372 | 2011-10-27 20:44:19 +0000 | [diff] [blame] | 38 | kGPU_DeviceType, |
robertphillips@google.com | b442a6d | 2012-04-02 19:24:21 +0000 | [diff] [blame] | 39 | #if SK_ANGLE |
| 40 | kANGLE_DeviceType, |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 41 | #endif // SK_ANGLE |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 42 | #endif // SK_SUPPORT_GPU |
reed | beedb81 | 2015-05-05 12:14:45 -0700 | [diff] [blame] | 43 | kDeferred_DeviceType, |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 44 | kDeviceTypeCnt |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 45 | }; |
bsalomon@google.com | 82502e2 | 2013-01-24 20:47:18 +0000 | [diff] [blame] | 46 | |
| 47 | static bool IsGpuDeviceType(DeviceType devType) { |
| 48 | #if SK_SUPPORT_GPU |
| 49 | switch (devType) { |
| 50 | case kGPU_DeviceType: |
| 51 | #if SK_ANGLE |
| 52 | case kANGLE_DeviceType: |
| 53 | #endif // SK_ANGLE |
bsalomon@google.com | 82502e2 | 2013-01-24 20:47:18 +0000 | [diff] [blame] | 54 | return true; |
reed@google.com | 58c0aaa | 2013-01-24 22:09:06 +0000 | [diff] [blame] | 55 | default: |
| 56 | return false; |
bsalomon@google.com | 82502e2 | 2013-01-24 20:47:18 +0000 | [diff] [blame] | 57 | } |
| 58 | #endif // SK_SUPPORT_GPU |
| 59 | return false; |
| 60 | } |
| 61 | |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 62 | /** |
| 63 | * SampleApp ports can subclass this manager class if they want to: |
| 64 | * * filter the types of devices supported |
robertphillips@google.com | 1f2f338 | 2013-08-29 11:54:56 +0000 | [diff] [blame] | 65 | * * customize plugging of SkBaseDevice objects into an SkCanvas |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 66 | * * customize publishing the results of draw to the OS window |
| 67 | * * manage GrContext / GrRenderTarget lifetimes |
| 68 | */ |
| 69 | class DeviceManager : public SkRefCnt { |
| 70 | public: |
robertphillips@google.com | a22e211 | 2012-08-16 14:58:06 +0000 | [diff] [blame] | 71 | SK_DECLARE_INST_COUNT(DeviceManager) |
| 72 | |
bsalomon@google.com | 1195925 | 2012-04-06 20:13:38 +0000 | [diff] [blame] | 73 | virtual void setUpBackend(SampleWindow* win, int msaaSampleCount) = 0; |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 74 | |
robertphillips@google.com | b442a6d | 2012-04-02 19:24:21 +0000 | [diff] [blame] | 75 | virtual void tearDownBackend(SampleWindow* win) = 0; |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 76 | |
| 77 | // called before drawing. should install correct device |
| 78 | // type on the canvas. Will skip drawing if returns false. |
reed | 0397e9f | 2014-09-18 11:29:01 -0700 | [diff] [blame] | 79 | virtual SkSurface* createSurface(DeviceType dType, SampleWindow* win) = 0; |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 80 | |
| 81 | // called after drawing, should get the results onto the |
| 82 | // screen. |
| 83 | virtual void publishCanvas(DeviceType dType, |
| 84 | SkCanvas* canvas, |
| 85 | SampleWindow* win) = 0; |
| 86 | |
| 87 | // called when window changes size, guaranteed to be called |
| 88 | // at least once before first draw (after init) |
| 89 | virtual void windowSizeChanged(SampleWindow* win) = 0; |
| 90 | |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 91 | // return the GrContext backing gpu devices (NULL if not built with GPU support) |
robertphillips@google.com | b442a6d | 2012-04-02 19:24:21 +0000 | [diff] [blame] | 92 | virtual GrContext* getGrContext() = 0; |
bsalomon@google.com | 1195925 | 2012-04-06 20:13:38 +0000 | [diff] [blame] | 93 | |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 94 | // return the GrRenderTarget backing gpu devices (NULL if not built with GPU support) |
bsalomon@google.com | 1195925 | 2012-04-06 20:13:38 +0000 | [diff] [blame] | 95 | virtual GrRenderTarget* getGrRenderTarget() = 0; |
robertphillips@google.com | a22e211 | 2012-08-16 14:58:06 +0000 | [diff] [blame] | 96 | private: |
| 97 | typedef SkRefCnt INHERITED; |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 98 | }; |
| 99 | |
| 100 | SampleWindow(void* hwnd, int argc, char** argv, DeviceManager*); |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 101 | virtual ~SampleWindow(); |
| 102 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 103 | SkSurface* createSurface() override { |
reed | 0397e9f | 2014-09-18 11:29:01 -0700 | [diff] [blame] | 104 | SkSurface* surface = NULL; |
reed@google.com | 5957f47 | 2012-10-01 20:31:56 +0000 | [diff] [blame] | 105 | if (fDevManager) { |
reed | 0397e9f | 2014-09-18 11:29:01 -0700 | [diff] [blame] | 106 | surface = fDevManager->createSurface(fDeviceType, this); |
reed@google.com | 5957f47 | 2012-10-01 20:31:56 +0000 | [diff] [blame] | 107 | } |
reed | 0397e9f | 2014-09-18 11:29:01 -0700 | [diff] [blame] | 108 | if (NULL == surface) { |
| 109 | surface = this->INHERITED::createSurface(); |
reed@google.com | 5957f47 | 2012-10-01 20:31:56 +0000 | [diff] [blame] | 110 | } |
reed | 0397e9f | 2014-09-18 11:29:01 -0700 | [diff] [blame] | 111 | return surface; |
reed@google.com | 5957f47 | 2012-10-01 20:31:56 +0000 | [diff] [blame] | 112 | } |
| 113 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 114 | void draw(SkCanvas*) override; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 115 | |
yangsu@google.com | 921091f | 2011-08-02 13:39:12 +0000 | [diff] [blame] | 116 | void setDeviceType(DeviceType type); |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 117 | void toggleRendering(); |
| 118 | void toggleSlideshow(); |
| 119 | void toggleFPS(); |
yangsu@google.com | db03eaa | 2011-08-08 15:37:23 +0000 | [diff] [blame] | 120 | void showOverview(); |
reed | 4302ae9 | 2014-10-06 12:29:56 -0700 | [diff] [blame] | 121 | void toggleDistanceFieldFonts(); |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 122 | |
robertphillips@google.com | b442a6d | 2012-04-02 19:24:21 +0000 | [diff] [blame] | 123 | GrContext* getGrContext() const { return fDevManager->getGrContext(); } |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 124 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 125 | void setZoomCenter(float x, float y); |
| 126 | void changeZoomLevel(float delta); |
| 127 | bool nextSample(); |
| 128 | bool previousSample(); |
yangsu@google.com | 501775e | 2011-06-24 16:04:50 +0000 | [diff] [blame] | 129 | bool goToSample(int i); |
| 130 | SkString getSampleTitle(int i); |
| 131 | int sampleCount(); |
Scroggo | a54e2f6 | 2011-06-17 12:46:17 +0000 | [diff] [blame] | 132 | bool handleTouch(int ownerId, float x, float y, |
| 133 | SkView::Click::State state); |
Scroggo | 8ac0d54 | 2011-06-21 14:44:57 +0000 | [diff] [blame] | 134 | void saveToPdf(); |
Scroggo | 62b65b0 | 2011-06-21 16:01:26 +0000 | [diff] [blame] | 135 | void postInvalDelay(); |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 136 | |
robertphillips@google.com | b442a6d | 2012-04-02 19:24:21 +0000 | [diff] [blame] | 137 | DeviceType getDeviceType() const { return fDeviceType; } |
| 138 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 139 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 140 | void onDraw(SkCanvas* canvas) override; |
| 141 | bool onHandleKey(SkKey key) override; |
| 142 | bool onHandleChar(SkUnichar) override; |
| 143 | void onSizeChange() override; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 144 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 145 | SkCanvas* beforeChildren(SkCanvas*) override; |
| 146 | void afterChildren(SkCanvas*) override; |
| 147 | void beforeChild(SkView* child, SkCanvas* canvas) override; |
| 148 | void afterChild(SkView* child, SkCanvas* canvas) override; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 149 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 150 | bool onEvent(const SkEvent& evt) override; |
| 151 | bool onQuery(SkEvent* evt) override; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 152 | |
reed@google.com | 4d5c26d | 2013-01-08 16:17:50 +0000 | [diff] [blame] | 153 | virtual bool onDispatchClick(int x, int y, Click::State, void* owner, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 154 | unsigned modi) override; |
| 155 | bool onClick(Click* click) override; |
reed@google.com | 4d5c26d | 2013-01-08 16:17:50 +0000 | [diff] [blame] | 156 | virtual Click* onFindClickHandler(SkScalar x, SkScalar y, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 157 | unsigned modi) override; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 158 | |
| 159 | private: |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 160 | class DefaultDeviceManager; |
| 161 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 162 | int fCurrIndex; |
| 163 | |
robertphillips@google.com | 84b18c7 | 2014-04-13 19:09:42 +0000 | [diff] [blame] | 164 | SkPictureRecorder fRecorder; |
reed | beedb81 | 2015-05-05 12:14:45 -0700 | [diff] [blame] | 165 | SkAutoTDelete<SkSurface> fDeferredSurface; |
| 166 | SkAutoTDelete<SkDeferredCanvas> fDeferredCanvas; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 167 | SkPath fClipPath; |
| 168 | |
| 169 | SkTouchGesture fGesture; |
| 170 | SkScalar fZoomLevel; |
| 171 | SkScalar fZoomScale; |
| 172 | |
bsalomon@google.com | 098e96d | 2011-07-14 14:30:46 +0000 | [diff] [blame] | 173 | DeviceType fDeviceType; |
| 174 | DeviceManager* fDevManager; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 175 | |
Scroggo | 8ac0d54 | 2011-06-21 14:44:57 +0000 | [diff] [blame] | 176 | bool fSaveToPdf; |
reed | ddb5eca | 2014-10-08 11:10:51 -0700 | [diff] [blame] | 177 | SkAutoTUnref<SkDocument> fPDFDocument; |
Scroggo | 8ac0d54 | 2011-06-21 14:44:57 +0000 | [diff] [blame] | 178 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 179 | bool fUseClip; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 180 | bool fAnimating; |
| 181 | bool fRotate; |
bsalomon@google.com | e8f0910 | 2011-09-08 18:48:12 +0000 | [diff] [blame] | 182 | bool fPerspAnim; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 183 | bool fRequestGrabImage; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 184 | bool fMeasureFPS; |
| 185 | SkMSec fMeasureFPS_Time; |
djsollen@google.com | 796763e | 2012-12-10 14:12:55 +0000 | [diff] [blame] | 186 | SkMSec fMeasureFPS_StartTime; |
yangsu@google.com | db03eaa | 2011-08-08 15:37:23 +0000 | [diff] [blame] | 187 | bool fMagnify; |
commit-bot@chromium.org | cc63b32 | 2013-12-06 20:14:55 +0000 | [diff] [blame] | 188 | int fTilingMode; |
chudy@google.com | 4605a3f | 2012-08-01 17:58:01 +0000 | [diff] [blame] | 189 | |
| 190 | |
scroggo@google.com | b073d92 | 2012-06-08 15:35:03 +0000 | [diff] [blame] | 191 | SkOSMenu::TriState fPipeState; // Mixed uses a tiled pipe |
| 192 | // On uses a normal pipe |
| 193 | // Off uses no pipe |
yangsu@google.com | ef7bdfa | 2011-08-12 14:27:47 +0000 | [diff] [blame] | 194 | int fUsePipeMenuItemID; |
chudy@google.com | 4605a3f | 2012-08-01 17:58:01 +0000 | [diff] [blame] | 195 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 196 | // The following are for the 'fatbits' drawing |
| 197 | // Latest position of the mouse. |
| 198 | int fMouseX, fMouseY; |
| 199 | int fFatBitsScale; |
| 200 | // Used by the text showing position and color values. |
| 201 | SkTypeface* fTypeface; |
| 202 | bool fShowZoomer; |
chudy@google.com | 4605a3f | 2012-08-01 17:58:01 +0000 | [diff] [blame] | 203 | |
yangsu@google.com | db03eaa | 2011-08-08 15:37:23 +0000 | [diff] [blame] | 204 | SkOSMenu::TriState fLCDState; |
| 205 | SkOSMenu::TriState fAAState; |
bungeman@google.com | 96aabc8 | 2013-06-03 21:26:34 +0000 | [diff] [blame] | 206 | SkOSMenu::TriState fSubpixelState; |
| 207 | int fHintingState; |
reed | 93a1215 | 2015-03-16 10:08:34 -0700 | [diff] [blame] | 208 | int fFilterQualityIndex; |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 209 | unsigned fFlipAxis; |
| 210 | |
bsalomon@google.com | 1195925 | 2012-04-06 20:13:38 +0000 | [diff] [blame] | 211 | int fMSAASampleCount; |
| 212 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 213 | int fScrollTestX, fScrollTestY; |
| 214 | SkScalar fZoomCenterX, fZoomCenterY; |
| 215 | |
yangsu@google.com | 921091f | 2011-08-02 13:39:12 +0000 | [diff] [blame] | 216 | //Stores global settings |
scroggo@google.com | 7dadc74 | 2012-04-18 14:07:57 +0000 | [diff] [blame] | 217 | SkOSMenu* fAppMenu; // We pass ownership to SkWindow, when we call addMenu |
yangsu@google.com | 921091f | 2011-08-02 13:39:12 +0000 | [diff] [blame] | 218 | //Stores slide specific settings |
scroggo@google.com | 7dadc74 | 2012-04-18 14:07:57 +0000 | [diff] [blame] | 219 | SkOSMenu* fSlideMenu; // We pass ownership to SkWindow, when we call addMenu |
| 220 | |
yangsu@google.com | db03eaa | 2011-08-08 15:37:23 +0000 | [diff] [blame] | 221 | int fTransitionNext; |
| 222 | int fTransitionPrev; |
scroggo@google.com | 7dadc74 | 2012-04-18 14:07:57 +0000 | [diff] [blame] | 223 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 224 | void loadView(SkView*); |
| 225 | void updateTitle(); |
reed | ddb5eca | 2014-10-08 11:10:51 -0700 | [diff] [blame] | 226 | bool getRawTitle(SkString*); |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 227 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 228 | bool zoomIn(); |
| 229 | bool zoomOut(); |
| 230 | void updatePointer(int x, int y); |
yangsu@google.com | db03eaa | 2011-08-08 15:37:23 +0000 | [diff] [blame] | 231 | void magnify(SkCanvas* canvas); |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 232 | void showZoomer(SkCanvas* canvas); |
reed@google.com | f03bb56 | 2011-11-11 21:42:12 +0000 | [diff] [blame] | 233 | void updateMatrix(); |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 234 | void postAnimatingEvent(); |
reed@google.com | e23f194 | 2011-12-08 19:36:00 +0000 | [diff] [blame] | 235 | void installDrawFilter(SkCanvas*); |
mike@reedtribe.org | 6f6e8c3 | 2011-12-27 22:33:50 +0000 | [diff] [blame] | 236 | int findByTitle(const char*); |
robertphillips@google.com | 7265e72 | 2012-05-03 18:22:28 +0000 | [diff] [blame] | 237 | void listTitles(); |
commit-bot@chromium.org | bbe43a9 | 2013-12-10 21:51:06 +0000 | [diff] [blame] | 238 | SkSize tileSize() const; |
reed | d9adfe6 | 2015-02-01 19:01:04 -0800 | [diff] [blame] | 239 | bool sendAnimatePulse(); |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 240 | |
Scroggo | 2c8208f | 2011-06-15 16:49:08 +0000 | [diff] [blame] | 241 | typedef SkOSWindow INHERITED; |
| 242 | }; |
| 243 | |
| 244 | #endif |