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

Side by Side Diff: include/views/SkOSWindow_Mac.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_Android.h ('k') | include/views/SkOSWindow_SDL.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 8
9 #ifndef SkOSWindow_MacCocoa_DEFINED 9 #ifndef SkOSWindow_MacCocoa_DEFINED
10 #define SkOSWindow_MacCocoa_DEFINED 10 #define SkOSWindow_MacCocoa_DEFINED
(...skipping 15 matching lines...) Expand all
26 #endif 26 #endif
27 #if SK_ANGLE 27 #if SK_ANGLE
28 kANGLE_BackEndType, 28 kANGLE_BackEndType,
29 #endif // SK_ANGLE 29 #endif // SK_ANGLE
30 #if SK_COMMAND_BUFFER 30 #if SK_COMMAND_BUFFER
31 kCommandBuffer_BackEndType, 31 kCommandBuffer_BackEndType,
32 #endif // SK_COMMAND_BUFFER 32 #endif // SK_COMMAND_BUFFER
33 }; 33 };
34 34
35 void release(); 35 void release();
36 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf o*); 36 bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool deepColo r,
37 AttachmentInfo*);
37 void present(); 38 void present();
38 39
39 bool makeFullscreen(); 40 bool makeFullscreen();
40 void closeWindow(); 41 void closeWindow();
41 void setVsync(bool); 42 void setVsync(bool);
42 protected: 43 protected:
43 // overrides from SkEventSink 44 // overrides from SkEventSink
44 virtual bool onEvent(const SkEvent& evt); 45 virtual bool onEvent(const SkEvent& evt);
45 // overrides from SkWindow 46 // overrides from SkWindow
46 virtual void onHandleInval(const SkIRect&); 47 virtual void onHandleInval(const SkIRect&);
47 // overrides from SkView 48 // overrides from SkView
48 virtual void onAddMenu(const SkOSMenu*); 49 virtual void onAddMenu(const SkOSMenu*);
49 virtual void onUpdateMenu(const SkOSMenu*); 50 virtual void onUpdateMenu(const SkOSMenu*);
50 virtual void onSetTitle(const char[]); 51 virtual void onSetTitle(const char[]);
51 52
52 private: 53 private:
53 void* fHWND; 54 void* fHWND;
54 bool fInvalEventIsPending; 55 bool fInvalEventIsPending;
55 void* fNotifier; 56 void* fNotifier;
56 #if SK_SUPPORT_GPU 57 #if SK_SUPPORT_GPU
57 void* fGLContext; 58 void* fGLContext;
58 #endif 59 #endif
59 typedef SkWindow INHERITED; 60 typedef SkWindow INHERITED;
60 }; 61 };
61 62
62 #endif 63 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_Android.h ('k') | include/views/SkOSWindow_SDL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698