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

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

Issue 890873003: update example (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove multiple example cruft Created 5 years, 10 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_Mac.h ('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 * Copyright 2012 Skia 2 * Copyright 2012 Skia
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkOSWindow_NaCl_DEFINED 8 #ifndef SkOSWindow_NaCl_DEFINED
9 #define SkOSWindow_NaCl_DEFINED 9 #define SkOSWindow_NaCl_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*) {} 15 SkOSWindow(void*) {}
16 ~SkOSWindow() {} 16 ~SkOSWindow() {}
17 17
18 enum SkBackEndTypes { 18 enum SkBackEndTypes {
19 kNone_BackEndType, 19 kNone_BackEndType,
20 kNativeGL_BackEndType, 20 kNativeGL_BackEndType,
21 }; 21 };
22 22
23 struct AttachmentInfo {
24 int fSampleCount;
25 int fStencilBits;
26 };
27
28 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */, Atta chmentInfo* info) { 23 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */, Atta chmentInfo* info) {
29 info->fSampleCount = 0; 24 info->fSampleCount = 0;
30 info->fStencilBits = 0; 25 info->fStencilBits = 0;
31 return true; 26 return true;
32 } 27 }
33 void detach() {} 28 void detach() {}
34 void present() {} 29 void present() {}
35 30
36 virtual void onPDFSaved(const char title[], const char desc[], 31 virtual void onPDFSaved(const char title[], const char desc[],
37 const char path[]); 32 const char path[]);
38 33
39 protected: 34 protected:
40 // overrides from SkWindow 35 // overrides from SkWindow
41 virtual void onHandleInval(const SkIRect&); 36 virtual void onHandleInval(const SkIRect&);
42 virtual void onSetTitle(const char title[]); 37 virtual void onSetTitle(const char title[]);
43 38
44 private: 39 private:
45 typedef SkWindow INHERITED; 40 typedef SkWindow INHERITED;
46 }; 41 };
47 42
48 #endif 43 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_Mac.h ('k') | include/views/SkOSWindow_Unix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698