OLD | NEW |
---|---|
1 #import "SkUIView.h" | 1 #import "SkUIView.h" |
2 #include "SkCanvas.h" | 2 #include "SkCanvas.h" |
3 #include "SkCGUtils.h" | 3 #include "SkCGUtils.h" |
4 @implementation SkUIView | 4 @implementation SkUIView |
5 | 5 |
6 @synthesize fWind, fTitleItem, fOptionsDelegate; | 6 @synthesize fWind, fTitleItem, fOptionsDelegate; |
7 | 7 |
8 - (id)initWithDefaults { | 8 - (id)initWithDefaults { |
9 fWind = NULL; | 9 fWind = NULL; |
10 return self; | 10 return self; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 - (void)setSkTitle:(const char *)title { | 86 - (void)setSkTitle:(const char *)title { |
87 if (fTitleItem) { | 87 if (fTitleItem) { |
88 fTitleItem.title = [NSString stringWithUTF8String:title]; | 88 fTitleItem.title = [NSString stringWithUTF8String:title]; |
89 } | 89 } |
90 } | 90 } |
91 | 91 |
92 - (BOOL)onHandleEvent:(const SkEvent&)evt { | 92 - (BOOL)onHandleEvent:(const SkEvent&)evt { |
93 return false; | 93 return false; |
94 } | 94 } |
95 | 95 |
96 - (void)getAttachmentInfo:(SkOSWindow::AttachmentInfo*)info { | |
97 info->fSampleCount = 0; | |
robertphillips
2013/03/05 19:02:35
0 for stencil bits?
bsalomon
2013/03/05 19:13:03
This view isn't GL backed, only the subclass SkSam
| |
98 info->fStencilBits = 0; | |
99 } | |
100 | |
101 | |
96 #include "SkOSMenu.h" | 102 #include "SkOSMenu.h" |
97 - (void)onAddMenu:(const SkOSMenu*)menu { | 103 - (void)onAddMenu:(const SkOSMenu*)menu { |
98 [self.fOptionsDelegate view:self didAddMenu:menu]; | 104 [self.fOptionsDelegate view:self didAddMenu:menu]; |
99 } | 105 } |
100 - (void)onUpdateMenu:(SkOSMenu*)menu { | 106 - (void)onUpdateMenu:(SkOSMenu*)menu { |
101 [self.fOptionsDelegate view:self didUpdateMenu:menu]; | 107 [self.fOptionsDelegate view:self didUpdateMenu:menu]; |
102 } | 108 } |
103 | 109 |
104 - (void)postInvalWithRect:(const SkIRect*)r { | 110 - (void)postInvalWithRect:(const SkIRect*)r { |
105 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0]; | 111 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0]; |
106 [self setNeedsDisplay]; | 112 [self setNeedsDisplay]; |
107 } | 113 } |
108 | 114 |
109 @end | 115 @end |
OLD | NEW |