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

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

Issue 1184143011: nibless mac, visual bench working on mac (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix HelloWorld compile on windows Created 5 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 | « gyp/visualbench.gyp ('k') | src/views/mac/SampleApp.xib » ('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 12 matching lines...) Expand all
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 }; 27 };
28 28
29 void detach(); 29 void detach();
30 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf o*); 30 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf o*);
31 void present(); 31 void present();
32 32
33 bool makeFullscreen() { return false; } 33 bool makeFullscreen();
34 void closeWindow() { /* Not impl yet */ } 34 void closeWindow();
35 void setVsync(bool) { /* Not impl yet */ } 35 void setVsync(bool);
36
37 protected: 36 protected:
38 // overrides from SkEventSink 37 // overrides from SkEventSink
39 virtual bool onEvent(const SkEvent& evt); 38 virtual bool onEvent(const SkEvent& evt);
40 // overrides from SkWindow 39 // overrides from SkWindow
41 virtual void onHandleInval(const SkIRect&); 40 virtual void onHandleInval(const SkIRect&);
42 // overrides from SkView 41 // overrides from SkView
43 virtual void onAddMenu(const SkOSMenu*); 42 virtual void onAddMenu(const SkOSMenu*);
44 virtual void onUpdateMenu(const SkOSMenu*); 43 virtual void onUpdateMenu(const SkOSMenu*);
45 virtual void onSetTitle(const char[]); 44 virtual void onSetTitle(const char[]);
46 45
47 private: 46 private:
48 void* fHWND; 47 void* fHWND;
49 bool fInvalEventIsPending; 48 bool fInvalEventIsPending;
50 void* fNotifier; 49 void* fNotifier;
51 #if SK_SUPPORT_GPU 50 #if SK_SUPPORT_GPU
52 void* fGLContext; 51 void* fGLContext;
53 #endif 52 #endif
54 typedef SkWindow INHERITED; 53 typedef SkWindow INHERITED;
55 }; 54 };
56 55
57 #endif 56 #endif
OLDNEW
« no previous file with comments | « gyp/visualbench.gyp ('k') | src/views/mac/SampleApp.xib » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698