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

Side by Side Diff: experimental/iOSSampleApp/Shared/SkUIView.mm

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 | « experimental/iOSSampleApp/Shared/SkUIView.h ('k') | experimental/iOSSampleApp/SkSampleUIView.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 #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
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 // we don't have a GL context.
98 info->fSampleCount = 0;
99 info->fStencilBits = 0;
100 }
101
102
96 #include "SkOSMenu.h" 103 #include "SkOSMenu.h"
97 - (void)onAddMenu:(const SkOSMenu*)menu { 104 - (void)onAddMenu:(const SkOSMenu*)menu {
98 [self.fOptionsDelegate view:self didAddMenu:menu]; 105 [self.fOptionsDelegate view:self didAddMenu:menu];
99 } 106 }
100 - (void)onUpdateMenu:(SkOSMenu*)menu { 107 - (void)onUpdateMenu:(SkOSMenu*)menu {
101 [self.fOptionsDelegate view:self didUpdateMenu:menu]; 108 [self.fOptionsDelegate view:self didUpdateMenu:menu];
102 } 109 }
103 110
104 - (void)postInvalWithRect:(const SkIRect*)r { 111 - (void)postInvalWithRect:(const SkIRect*)r {
105 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0]; 112 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0];
106 [self setNeedsDisplay]; 113 [self setNeedsDisplay];
107 } 114 }
108 115
109 @end 116 @end
OLDNEW
« no previous file with comments | « experimental/iOSSampleApp/Shared/SkUIView.h ('k') | experimental/iOSSampleApp/SkSampleUIView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698