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

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

Issue 1346423002: Skia: Add Command Buffer support to Linux/Mac (Closed) Base URL: https://skia.googlesource.com/skia@angle_on_linux
Patch Set: make windows compile Created 5 years, 2 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 | « gyp/ports.gyp ('k') | include/views/SkOSWindow_Unix.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_COMMAND_BUFFER
28 kCommandBuffer_BackEndType,
29 #endif // SK_COMMAND_BUFFER
27 }; 30 };
28 31
29 void detach(); 32 void detach();
30 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf o*); 33 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf o*);
31 void present(); 34 void present();
32 35
33 bool makeFullscreen(); 36 bool makeFullscreen();
34 void closeWindow(); 37 void closeWindow();
35 void setVsync(bool); 38 void setVsync(bool);
36 protected: 39 protected:
(...skipping 10 matching lines...) Expand all
47 void* fHWND; 50 void* fHWND;
48 bool fInvalEventIsPending; 51 bool fInvalEventIsPending;
49 void* fNotifier; 52 void* fNotifier;
50 #if SK_SUPPORT_GPU 53 #if SK_SUPPORT_GPU
51 void* fGLContext; 54 void* fGLContext;
52 #endif 55 #endif
53 typedef SkWindow INHERITED; 56 typedef SkWindow INHERITED;
54 }; 57 };
55 58
56 #endif 59 #endif
OLDNEW
« no previous file with comments | « gyp/ports.gyp ('k') | include/views/SkOSWindow_Unix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698