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

Side by Side Diff: include/views/SkOSWindow_Android.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
« no previous file with comments | « include/gpu/GrSurface.h ('k') | include/views/SkOSWindow_Mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Skia 2 * Copyright 2011 Skia
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 SkOSWindow_Android_DEFINED 8 #ifndef SkOSWindow_Android_DEFINED
9 #define SkOSWindow_Android_DEFINED 9 #define SkOSWindow_Android_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 class SkOSWindow : public SkWindow { 21 class SkOSWindow : public SkWindow {
22 public: 22 public:
23 SkOSWindow(void*); 23 SkOSWindow(void*);
24 ~SkOSWindow(); 24 ~SkOSWindow();
25 25
26 enum SkBackEndTypes { 26 enum SkBackEndTypes {
27 kNone_BackEndType, 27 kNone_BackEndType,
28 kNativeGL_BackEndType, 28 kNativeGL_BackEndType,
29 }; 29 };
30 30
31 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo* info); 31 bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool deepColor,
32 AttachmentInfo* info);
32 void release(); 33 void release();
33 void present(); 34 void present();
34 bool makeFullscreen() { return true; } 35 bool makeFullscreen() { return true; }
35 void closeWindow(); 36 void closeWindow();
36 void setVsync(bool); 37 void setVsync(bool);
37 bool destroyRequested() { return fDestroyRequested; } 38 bool destroyRequested() { return fDestroyRequested; }
38 39
39 protected: 40 protected:
40 // overrides from SkWindow 41 // overrides from SkWindow
41 virtual void onHandleInval(const SkIRect&); 42 virtual void onHandleInval(const SkIRect&);
42 virtual void onSetTitle(const char title[]); 43 virtual void onSetTitle(const char title[]);
43 44
44 private: 45 private:
45 SkAndroidWindow fWindow; 46 SkAndroidWindow fWindow;
46 ANativeWindow* fNativeWindow; 47 ANativeWindow* fNativeWindow;
47 bool fDestroyRequested; 48 bool fDestroyRequested;
48 49
49 typedef SkWindow INHERITED; 50 typedef SkWindow INHERITED;
50 }; 51 };
51 52
52 #endif 53 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrSurface.h ('k') | include/views/SkOSWindow_Mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698