| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2012 Skia | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 #ifndef SkOSWindow_NaCl_DEFINED | |
| 9 #define SkOSWindow_NaCl_DEFINED | |
| 10 | |
| 11 #include "SkWindow.h" | |
| 12 | |
| 13 class SkOSWindow : public SkWindow { | |
| 14 public: | |
| 15 SkOSWindow(void*) {} | |
| 16 ~SkOSWindow() {} | |
| 17 | |
| 18 enum SkBackEndTypes { | |
| 19 kNone_BackEndType, | |
| 20 kNativeGL_BackEndType, | |
| 21 }; | |
| 22 | |
| 23 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */, Atta
chmentInfo* info) { | |
| 24 info->fSampleCount = 0; | |
| 25 info->fStencilBits = 0; | |
| 26 return true; | |
| 27 } | |
| 28 void detach() {} | |
| 29 void present() {} | |
| 30 | |
| 31 virtual void onPDFSaved(const char title[], const char desc[], | |
| 32 const char path[]); | |
| 33 | |
| 34 protected: | |
| 35 // overrides from SkWindow | |
| 36 virtual void onHandleInval(const SkIRect&); | |
| 37 virtual void onSetTitle(const char title[]); | |
| 38 | |
| 39 private: | |
| 40 typedef SkWindow INHERITED; | |
| 41 }; | |
| 42 | |
| 43 #endif | |
| OLD | NEW |