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

Side by Side Diff: include/views/SkOSWindow_iOS.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/views/SkOSWindow_Win.h ('k') | include/views/SkWindow.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkOSWindow_iOS_DEFINED 8 #ifndef SkOSWindow_iOS_DEFINED
9 #define SkOSWindow_iOS_DEFINED 9 #define SkOSWindow_iOS_DEFINED
10 10
11 #include "SkWindow.h" 11 #include "SkWindow.h"
12 12
13 class SkOSWindow : public SkWindow { 13 class SkOSWindow : public SkWindow {
14 public: 14 public:
15 SkOSWindow(void* hwnd); 15 SkOSWindow(void* hwnd);
16 ~SkOSWindow(); 16 ~SkOSWindow();
17 void* getHWND() const { return fHWND; } 17 void* getHWND() const { return fHWND; }
18 18
19 enum SkBackEndTypes { 19 enum SkBackEndTypes {
20 kNone_BackEndType, 20 kNone_BackEndType,
21 kNativeGL_BackEndType, 21 kNativeGL_BackEndType,
22 }; 22 };
23 23
24 void release(); 24 void release();
25 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf o*); 25 bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool deepColo r,
26 AttachmentInfo*);
26 void present(); 27 void present();
27 28
28 bool makeFullscreen() { return true; } 29 bool makeFullscreen() { return true; }
29 void closeWindow() { /* Not impl yet */ } 30 void closeWindow() { /* Not impl yet */ }
30 void setVsync(bool) { /* Can't turn off vsync? */ } 31 void setVsync(bool) { /* Can't turn off vsync? */ }
31 32
32 protected: 33 protected:
33 // overrides from SkEventSink 34 // overrides from SkEventSink
34 virtual bool onEvent(const SkEvent& evt); 35 virtual bool onEvent(const SkEvent& evt);
35 // overrides from SkWindow 36 // overrides from SkWindow
36 virtual void onHandleInval(const SkIRect&); 37 virtual void onHandleInval(const SkIRect&);
37 // overrides from SkView 38 // overrides from SkView
38 virtual void onAddMenu(const SkOSMenu*); 39 virtual void onAddMenu(const SkOSMenu*);
39 virtual void onUpdateMenu(SkOSMenu*); 40 virtual void onUpdateMenu(SkOSMenu*);
40 virtual void onSetTitle(const char[]); 41 virtual void onSetTitle(const char[]);
41 42
42 private: 43 private:
43 void* fHWND; 44 void* fHWND;
44 bool fInvalEventIsPending; 45 bool fInvalEventIsPending;
45 void* fNotifier; 46 void* fNotifier;
46 typedef SkWindow INHERITED; 47 typedef SkWindow INHERITED;
47 }; 48 };
48 49
49 #endif 50 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_Win.h ('k') | include/views/SkWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698