| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkOSWindow_Win_DEFINED | 10 #ifndef SkOSWindow_Win_DEFINED |
| 11 #define SkOSWindow_Win_DEFINED | 11 #define SkOSWindow_Win_DEFINED |
| 12 | 12 |
| 13 #include "SkWindow.h" | 13 #include "SkWindow.h" |
| 14 #include "../../src/core/SkFunction.h" | 14 #include "../../src/core/SkFunction.h" |
| 15 #include "../../src/core/SkTHash.h" | 15 #include "../../src/core/SkTHash.h" |
| 16 | 16 |
| 17 #if SK_ANGLE | 17 #if SK_ANGLE |
| 18 #include "EGL/egl.h" | 18 #include "EGL/egl.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 class SkOSWindow : public SkWindow { | 21 class SkOSWindow : public SkWindow { |
| 22 public: | 22 public: |
| 23 struct WindowInit { | 23 struct WindowInit { |
| 24 TCHAR* fClass; | 24 const TCHAR* fClass; |
| 25 HINSTANCE fInstance; | 25 HINSTANCE fInstance; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 SkOSWindow(const void* winInit); | 28 SkOSWindow(const void* winInit); |
| 29 virtual ~SkOSWindow(); | 29 virtual ~SkOSWindow(); |
| 30 | 30 |
| 31 static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); | 31 static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); |
| 32 | 32 |
| 33 enum SkBackEndTypes { | 33 enum SkBackEndTypes { |
| 34 kNone_BackEndType, | 34 kNone_BackEndType, |
| 35 #if SK_SUPPORT_GPU | 35 #if SK_SUPPORT_GPU |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); | 124 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); |
| 125 void detachANGLE(); | 125 void detachANGLE(); |
| 126 void presentANGLE(); | 126 void presentANGLE(); |
| 127 #endif // SK_ANGLE | 127 #endif // SK_ANGLE |
| 128 #endif // SK_SUPPORT_GPU | 128 #endif // SK_SUPPORT_GPU |
| 129 | 129 |
| 130 typedef SkWindow INHERITED; | 130 typedef SkWindow INHERITED; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 #endif | 133 #endif |
| OLD | NEW |