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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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

mercurial