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