diff options
author | 2013-03-05 20:06:05 +0000 | |
---|---|---|
committer | 2013-03-05 20:06:05 +0000 | |
commit | 64cc810ad165724f9c666a75bd52e41c67f13564 (patch) | |
tree | dc05e9b5db78f18c9dcf75f9c62d2d05ea84a66f /experimental/iOSSampleApp/Shared | |
parent | acf3ecc7f70567a26f1435b5d3de45b316338b3e (diff) |
Make SkOSWindow return the sample count and stencil bit count for its GL context.
Review URL: https://codereview.chromium.org/12437010
git-svn-id: http://skia.googlecode.com/svn/trunk@7995 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/iOSSampleApp/Shared')
-rw-r--r-- | experimental/iOSSampleApp/Shared/SkUIView.h | 6 | ||||
-rw-r--r-- | experimental/iOSSampleApp/Shared/SkUIView.mm | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/experimental/iOSSampleApp/Shared/SkUIView.h b/experimental/iOSSampleApp/Shared/SkUIView.h index a3d05e37db..45c4df0abd 100644 --- a/experimental/iOSSampleApp/Shared/SkUIView.h +++ b/experimental/iOSSampleApp/Shared/SkUIView.h @@ -11,8 +11,8 @@ #import <OpenGLES/ES2/glext.h> #import <QuartzCore/QuartzCore.h> #import <UIKit/UIKit.h> -#include "SkWindow.h" -class SkOSWindow; +#include "SkOSWindow_ios.h" + class SkEvent; @class SkUIView; @@ -43,4 +43,6 @@ class SkEvent; - (void)onUpdateMenu:(SkOSMenu*)menu; - (void)postInvalWithRect:(const SkIRect*)rectOrNil; - (BOOL)onHandleEvent:(const SkEvent&)event; +- (void)getAttachmentInfo:(SkOSWindow::AttachmentInfo*)info; + @end diff --git a/experimental/iOSSampleApp/Shared/SkUIView.mm b/experimental/iOSSampleApp/Shared/SkUIView.mm index 835e970666..10b55183c3 100644 --- a/experimental/iOSSampleApp/Shared/SkUIView.mm +++ b/experimental/iOSSampleApp/Shared/SkUIView.mm @@ -93,6 +93,12 @@ return false; } +- (void)getAttachmentInfo:(SkOSWindow::AttachmentInfo*)info { + // we don't have a GL context. + info->fSampleCount = 0; + info->fStencilBits = 0; +} + #include "SkOSMenu.h" - (void)onAddMenu:(const SkOSMenu*)menu { [self.fOptionsDelegate view:self didAddMenu:menu]; |