| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Skia | 3 * Copyright 2011 Skia |
| 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_Android_DEFINED | 10 #ifndef SkOSWindow_Android_DEFINED |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 enum SkBackEndTypes { | 22 enum SkBackEndTypes { |
| 23 kNone_BackEndType, | 23 kNone_BackEndType, |
| 24 kNativeGL_BackEndType, | 24 kNativeGL_BackEndType, |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 struct AttachmentInfo { | 27 struct AttachmentInfo { |
| 28 int fSampleCount; | 28 int fSampleCount; |
| 29 int fStencilBits; | 29 int fStencilBits; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */, Atta
chmentInfo* info) { | 32 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*
info); |
| 33 // These are the values requested in SkiaSampleView.java | |
| 34 info->fSampleCount = 0; | |
| 35 info->fStencilBits = 8; | |
| 36 return true; | |
| 37 } | |
| 38 void detach() {} | 33 void detach() {} |
| 39 void present() {} | 34 void present() {} |
| 40 | 35 |
| 41 virtual void onPDFSaved(const char title[], const char desc[], | 36 virtual void onPDFSaved(const char title[], const char desc[], |
| 42 const char path[]); | 37 const char path[]); |
| 43 | 38 |
| 44 protected: | 39 protected: |
| 45 // overrides from SkWindow | 40 // overrides from SkWindow |
| 46 virtual void onHandleInval(const SkIRect&); | 41 virtual void onHandleInval(const SkIRect&); |
| 47 virtual void onSetTitle(const char title[]); | 42 virtual void onSetTitle(const char title[]); |
| 48 | 43 |
| 49 private: | 44 private: |
| 50 typedef SkWindow INHERITED; | 45 typedef SkWindow INHERITED; |
| 51 }; | 46 }; |
| 52 | 47 |
| 53 #endif | 48 #endif |
| OLD | NEW |