| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Skia | 2 * Copyright 2011 Skia |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SampleApp_DEFINED | 8 #ifndef SampleApp_DEFINED |
| 9 #define SampleApp_DEFINED | 9 #define SampleApp_DEFINED |
| 10 | 10 |
| 11 #include "SkOSMenu.h" | 11 #include "SkOSMenu.h" |
| 12 #include "SkPath.h" | 12 #include "SkPath.h" |
| 13 #include "SkPicture.h" | 13 #include "SkPicture.h" |
| 14 #include "SkPictureRecorder.h" | 14 #include "SkPictureRecorder.h" |
| 15 #include "SkScalar.h" | 15 #include "SkScalar.h" |
| 16 #include "SkStream.h" |
| 16 #include "SkTDArray.h" | 17 #include "SkTDArray.h" |
| 17 #include "SkTouchGesture.h" | 18 #include "SkTouchGesture.h" |
| 18 #include "SkWindow.h" | 19 #include "SkWindow.h" |
| 19 #include "timer/Timer.h" | 20 #include "timer/Timer.h" |
| 20 | 21 |
| 22 #include "SkPipe.h" |
| 23 |
| 21 class GrContext; | 24 class GrContext; |
| 22 class GrRenderTarget; | 25 class GrRenderTarget; |
| 23 | 26 |
| 24 class SkCanvas; | 27 class SkCanvas; |
| 25 class SkData; | 28 class SkData; |
| 26 class SkDocument; | 29 class SkDocument; |
| 27 class SkEvent; | 30 class SkEvent; |
| 28 class SkTypeface; | 31 class SkTypeface; |
| 29 class SkViewFactory; | 32 class SkViewFactory; |
| 30 | 33 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 unsigned modi) override; | 161 unsigned modi) override; |
| 159 bool onClick(Click* click) override; | 162 bool onClick(Click* click) override; |
| 160 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, | 163 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, |
| 161 unsigned modi) override; | 164 unsigned modi) override; |
| 162 | 165 |
| 163 private: | 166 private: |
| 164 class DefaultDeviceManager; | 167 class DefaultDeviceManager; |
| 165 | 168 |
| 166 int fCurrIndex; | 169 int fCurrIndex; |
| 167 | 170 |
| 171 |
| 172 SkDynamicMemoryWStream* fPipeStream; |
| 173 SkPipeSerializer fPipeSerializer; |
| 174 SkPipeDeserializer fPipeDeserializer; |
| 175 |
| 168 SkPictureRecorder fRecorder; | 176 SkPictureRecorder fRecorder; |
| 169 SkAutoTDelete<SkCanvas> fFlagsFilterCanvas; | 177 SkAutoTDelete<SkCanvas> fFlagsFilterCanvas; |
| 170 SkPath fClipPath; | 178 SkPath fClipPath; |
| 171 | 179 |
| 172 SkTouchGesture fGesture; | 180 SkTouchGesture fGesture; |
| 173 SkScalar fZoomLevel; | 181 SkScalar fZoomLevel; |
| 174 SkScalar fZoomScale; | 182 SkScalar fZoomScale; |
| 175 SkVector fOffset; | 183 SkVector fOffset; |
| 176 | 184 |
| 177 DeviceType fDeviceType; | 185 DeviceType fDeviceType; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 void postAnimatingEvent(); | 241 void postAnimatingEvent(); |
| 234 int findByTitle(const char*); | 242 int findByTitle(const char*); |
| 235 void listTitles(); | 243 void listTitles(); |
| 236 SkSize tileSize() const; | 244 SkSize tileSize() const; |
| 237 bool sendAnimatePulse(); | 245 bool sendAnimatePulse(); |
| 238 | 246 |
| 239 typedef SkOSWindow INHERITED; | 247 typedef SkOSWindow INHERITED; |
| 240 }; | 248 }; |
| 241 | 249 |
| 242 #endif | 250 #endif |
| OLD | NEW |