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

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

Issue 2061233002: Remove command buffer sample app support. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | 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
11 11
12 #include "SkWindow.h" 12 #include "SkWindow.h"
13 13
14 class SkOSWindow : public SkWindow { 14 class SkOSWindow : public SkWindow {
15 public: 15 public:
16 SkOSWindow(void* hwnd); 16 SkOSWindow(void* hwnd);
17 ~SkOSWindow(); 17 ~SkOSWindow();
18 void* getHWND() const { return fHWND; } 18 void* getHWND() const { return fHWND; }
19 19
20 virtual bool onDispatchClick(int x, int y, Click::State state, 20 virtual bool onDispatchClick(int x, int y, Click::State state,
21 void* owner, unsigned modi); 21 void* owner, unsigned modi);
22 enum SkBackEndTypes { 22 enum SkBackEndTypes {
23 kNone_BackEndType, 23 kNone_BackEndType,
24 #if SK_SUPPORT_GPU 24 #if SK_SUPPORT_GPU
25 kNativeGL_BackEndType, 25 kNativeGL_BackEndType,
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
31 kCommandBuffer_BackEndType,
32 #endif // SK_COMMAND_BUFFER
33 }; 30 };
34 31
35 void release(); 32 void release();
36 bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool deepColo r, 33 bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool deepColo r,
37 AttachmentInfo*); 34 AttachmentInfo*);
38 void present(); 35 void present();
39 36
40 bool makeFullscreen(); 37 bool makeFullscreen();
41 void closeWindow(); 38 void closeWindow();
42 void setVsync(bool); 39 void setVsync(bool);
(...skipping 11 matching lines...) Expand all
54 void* fHWND; 51 void* fHWND;
55 bool fInvalEventIsPending; 52 bool fInvalEventIsPending;
56 void* fNotifier; 53 void* fNotifier;
57 #if SK_SUPPORT_GPU 54 #if SK_SUPPORT_GPU
58 void* fGLContext; 55 void* fGLContext;
59 #endif 56 #endif
60 typedef SkWindow INHERITED; 57 typedef SkWindow INHERITED;
61 }; 58 };
62 59
63 #endif 60 #endif
OLDNEW
« no previous file with comments | « no previous file | include/views/SkOSWindow_SDL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698