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

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

Issue 60273006: Support MSAA4 and (non-ES) OpenGL in Android SampleApp (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase now that api level changes are merged Created 7 years 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 | « no previous file | platform_tools/android/app/jni/com_skia_SkiaSampleRenderer.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 2011 Skia 3 * Copyright 2011 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_Android_DEFINED 10 #ifndef SkOSWindow_Android_DEFINED
(...skipping 11 matching lines...) Expand all
22 enum SkBackEndTypes { 22 enum SkBackEndTypes {
23 kNone_BackEndType, 23 kNone_BackEndType,
24 kNativeGL_BackEndType, 24 kNativeGL_BackEndType,
25 }; 25 };
26 26
27 struct AttachmentInfo { 27 struct AttachmentInfo {
28 int fSampleCount; 28 int fSampleCount;
29 int fStencilBits; 29 int fStencilBits;
30 }; 30 };
31 31
32 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */, Atta chmentInfo* info) { 32 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo* info);
33 // These are the values requested in SkiaSampleView.java
34 info->fSampleCount = 0;
35 info->fStencilBits = 8;
36 return true;
37 }
38 void detach() {} 33 void detach() {}
39 void present() {} 34 void present() {}
40 35
41 virtual void onPDFSaved(const char title[], const char desc[], 36 virtual void onPDFSaved(const char title[], const char desc[],
42 const char path[]); 37 const char path[]);
43 38
44 protected: 39 protected:
45 // overrides from SkWindow 40 // overrides from SkWindow
46 virtual void onHandleInval(const SkIRect&); 41 virtual void onHandleInval(const SkIRect&);
47 virtual void onSetTitle(const char title[]); 42 virtual void onSetTitle(const char title[]);
48 43
49 private: 44 private:
50 typedef SkWindow INHERITED; 45 typedef SkWindow INHERITED;
51 }; 46 };
52 47
53 #endif 48 #endif
OLDNEW
« no previous file with comments | « no previous file | platform_tools/android/app/jni/com_skia_SkiaSampleRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698