1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/include/views/SkOSWindow_Android.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 + 1.5 +/* 1.6 + * Copyright 2011 Skia 1.7 + * 1.8 + * Use of this source code is governed by a BSD-style license that can be 1.9 + * found in the LICENSE file. 1.10 + */ 1.11 + 1.12 + 1.13 +#ifndef SkOSWindow_Android_DEFINED 1.14 +#define SkOSWindow_Android_DEFINED 1.15 + 1.16 +#include "SkWindow.h" 1.17 + 1.18 +class SkIRect; 1.19 + 1.20 +class SkOSWindow : public SkWindow { 1.21 +public: 1.22 + SkOSWindow(void*) {} 1.23 + ~SkOSWindow() {} 1.24 + 1.25 + enum SkBackEndTypes { 1.26 + kNone_BackEndType, 1.27 + kNativeGL_BackEndType, 1.28 + }; 1.29 + 1.30 + struct AttachmentInfo { 1.31 + int fSampleCount; 1.32 + int fStencilBits; 1.33 + }; 1.34 + 1.35 + bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo* info); 1.36 + void detach() {} 1.37 + void present() {} 1.38 + 1.39 + virtual void onPDFSaved(const char title[], const char desc[], 1.40 + const char path[]); 1.41 + 1.42 +protected: 1.43 + // overrides from SkWindow 1.44 + virtual void onHandleInval(const SkIRect&); 1.45 + virtual void onSetTitle(const char title[]); 1.46 + 1.47 +private: 1.48 + typedef SkWindow INHERITED; 1.49 +}; 1.50 + 1.51 +#endif