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

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

Issue 12437010: Make SkOSWindow return the sample count and stencil bit count for its GL context. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« 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 /* 2 /*
3 * Copyright 2012 Skia 3 * Copyright 2012 Skia
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 9
10 #ifndef SkOSWindow_NaCl_DEFINED 10 #ifndef SkOSWindow_NaCl_DEFINED
11 #define SkOSWindow_NaCl_DEFINED 11 #define SkOSWindow_NaCl_DEFINED
12 12
13 #include "SkWindow.h" 13 #include "SkWindow.h"
14 14
15 class SkIRect; 15 class SkIRect;
16 16
17 class SkOSWindow : public SkWindow { 17 class SkOSWindow : public SkWindow {
18 public: 18 public:
19 SkOSWindow(void*) {} 19 SkOSWindow(void*) {}
20 ~SkOSWindow() {} 20 ~SkOSWindow() {}
21 21
22 enum SkBackEndTypes { 22 enum SkBackEndTypes {
23 kNone_BackEndType, 23 kNone_BackEndType,
24 kNativeGL_BackEndType, 24 kNativeGL_BackEndType,
25 }; 25 };
26 26
27 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */) { 27 struct AttachmentInfo {
28 int fSampleCount;
29 int fStencilBits;
30 };
31
32 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */, Atta chmentInfo* info) {
33 info->fSampleCount = 0;
34 info->fStencilBits = 0;
28 return true; 35 return true;
29 } 36 }
30 void detach() {} 37 void detach() {}
31 void present() {} 38 void present() {}
32 39
33 virtual void onPDFSaved(const char title[], const char desc[], 40 virtual void onPDFSaved(const char title[], const char desc[],
34 const char path[]); 41 const char path[]);
35 42
36 protected: 43 protected:
37 // overrides from SkWindow 44 // overrides from SkWindow
38 virtual void onHandleInval(const SkIRect&); 45 virtual void onHandleInval(const SkIRect&);
39 virtual void onSetTitle(const char title[]); 46 virtual void onSetTitle(const char title[]);
40 47
41 private: 48 private:
42 typedef SkWindow INHERITED; 49 typedef SkWindow INHERITED;
43 }; 50 };
44 51
45 #endif 52 #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