| 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 std::unique_ptr<SkDynamicMemoryWStream> fPipeStream; |
| 172 SkPipeSerializer fPipeSerializer; |
| 173 SkPipeDeserializer fPipeDeserializer; |
| 174 |
| 168 SkPictureRecorder fRecorder; | 175 SkPictureRecorder fRecorder; |
| 169 SkAutoTDelete<SkCanvas> fFlagsFilterCanvas; | 176 SkAutoTDelete<SkCanvas> fFlagsFilterCanvas; |
| 170 SkPath fClipPath; | 177 SkPath fClipPath; |
| 171 | 178 |
| 172 SkTouchGesture fGesture; | 179 SkTouchGesture fGesture; |
| 173 SkScalar fZoomLevel; | 180 SkScalar fZoomLevel; |
| 174 SkScalar fZoomScale; | 181 SkScalar fZoomScale; |
| 175 SkVector fOffset; | 182 SkVector fOffset; |
| 176 | 183 |
| 177 DeviceType fDeviceType; | 184 DeviceType fDeviceType; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 void postAnimatingEvent(); | 240 void postAnimatingEvent(); |
| 234 int findByTitle(const char*); | 241 int findByTitle(const char*); |
| 235 void listTitles(); | 242 void listTitles(); |
| 236 SkSize tileSize() const; | 243 SkSize tileSize() const; |
| 237 bool sendAnimatePulse(); | 244 bool sendAnimatePulse(); |
| 238 | 245 |
| 239 typedef SkOSWindow INHERITED; | 246 typedef SkOSWindow INHERITED; |
| 240 }; | 247 }; |
| 241 | 248 |
| 242 #endif | 249 #endif |
| OLD | NEW |