| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkWindow_DEFINED | 8 #ifndef SkWindow_DEFINED |
| 9 #define SkWindow_DEFINED | 9 #define SkWindow_DEFINED |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class GrContext; | 25 class GrContext; |
| 26 class GrRenderTarget; | 26 class GrRenderTarget; |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 class SkWindow : public SkView { | 29 class SkWindow : public SkView { |
| 30 public: | 30 public: |
| 31 SkWindow(); | 31 SkWindow(); |
| 32 virtual ~SkWindow(); | 32 virtual ~SkWindow(); |
| 33 | 33 |
| 34 struct AttachmentInfo { | 34 struct AttachmentInfo { |
| 35 AttachmentInfo() |
| 36 : fSampleCount(0) |
| 37 , fStencilBits(0) |
| 38 , fColorBits(0) {} |
| 39 |
| 35 int fSampleCount; | 40 int fSampleCount; |
| 36 int fStencilBits; | 41 int fStencilBits; |
| 42 int fColorBits; |
| 37 }; | 43 }; |
| 38 | 44 |
| 39 SkSurfaceProps getSurfaceProps() const { return fSurfaceProps; } | 45 SkSurfaceProps getSurfaceProps() const { return fSurfaceProps; } |
| 40 void setSurfaceProps(const SkSurfaceProps& props) { | 46 void setSurfaceProps(const SkSurfaceProps& props) { |
| 41 fSurfaceProps = props; | 47 fSurfaceProps = props; |
| 42 } | 48 } |
| 43 | 49 |
| 44 SkImageInfo info() const { return fBitmap.info(); } | 50 SkImageInfo info() const { return fBitmap.info(); } |
| 45 const SkBitmap& getBitmap() const { return fBitmap; } | 51 const SkBitmap& getBitmap() const { return fBitmap; } |
| 46 | 52 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 #include "SkOSWindow_Win.h" | 130 #include "SkOSWindow_Win.h" |
| 125 #elif defined(SK_BUILD_FOR_ANDROID) | 131 #elif defined(SK_BUILD_FOR_ANDROID) |
| 126 #include "SkOSWindow_Android.h" | 132 #include "SkOSWindow_Android.h" |
| 127 #elif defined(SK_BUILD_FOR_UNIX) | 133 #elif defined(SK_BUILD_FOR_UNIX) |
| 128 #include "SkOSWindow_Unix.h" | 134 #include "SkOSWindow_Unix.h" |
| 129 #elif defined(SK_BUILD_FOR_IOS) | 135 #elif defined(SK_BUILD_FOR_IOS) |
| 130 #include "SkOSWindow_iOS.h" | 136 #include "SkOSWindow_iOS.h" |
| 131 #endif | 137 #endif |
| 132 | 138 |
| 133 #endif | 139 #endif |
| OLD | NEW |