gfx/skia/trunk/include/views/SkOSWindow_NaCl.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/include/views/SkOSWindow_NaCl.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2012 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_NaCl_DEFINED
    1.14 +#define SkOSWindow_NaCl_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 +        info->fSampleCount = 0;
    1.37 +        info->fStencilBits = 0;
    1.38 +        return true;
    1.39 +    }
    1.40 +    void detach() {}
    1.41 +    void present() {}
    1.42 +
    1.43 +    virtual void onPDFSaved(const char title[], const char desc[],
    1.44 +        const char path[]);
    1.45 +
    1.46 +protected:
    1.47 +    // overrides from SkWindow
    1.48 +    virtual void onHandleInval(const SkIRect&);
    1.49 +    virtual void onSetTitle(const char title[]);
    1.50 +
    1.51 +private:
    1.52 +    typedef SkWindow INHERITED;
    1.53 +};
    1.54 +
    1.55 +#endif

mercurial