Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: include/views/SkWindow.h

Issue 1919993002: Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_iOS.h ('k') | platform_tools/android/apps/sample_app/src/main/jni/com_skia_SkiaSampleRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698