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

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

Issue 233813004: Revert of Revert of Rename kPMColor_SkColorType to kN32_SkColorType. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « dm/DMGpuGMTask.cpp ('k') | experimental/iOSSampleApp/SkSampleUIView.mm » ('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 12 matching lines...) Expand all
23 self = [self initWithDefaults]; 23 self = [self initWithDefaults];
24 [self setUpWindow]; 24 [self setUpWindow];
25 } 25 }
26 return self; 26 return self;
27 } 27 }
28 28
29 - (void)setUpWindow { 29 - (void)setUpWindow {
30 if (NULL != fWind) { 30 if (NULL != fWind) {
31 fWind->setVisibleP(true); 31 fWind->setVisibleP(true);
32 fWind->resize(self.frame.size.width, self.frame.size.height, 32 fWind->resize(self.frame.size.width, self.frame.size.height,
33 kPMColor_SkColorType); 33 kN32_SkColorType);
34 } 34 }
35 } 35 }
36 36
37 - (void)dealloc { 37 - (void)dealloc {
38 delete fWind; 38 delete fWind;
39 [fTitleItem release]; 39 [fTitleItem release];
40 [super dealloc]; 40 [super dealloc];
41 } 41 }
42 42
43 - (void)forceRedraw { 43 - (void)forceRedraw {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 - (void)onUpdateMenu:(SkOSMenu*)menu { 106 - (void)onUpdateMenu:(SkOSMenu*)menu {
107 [self.fOptionsDelegate view:self didUpdateMenu:menu]; 107 [self.fOptionsDelegate view:self didUpdateMenu:menu];
108 } 108 }
109 109
110 - (void)postInvalWithRect:(const SkIRect*)r { 110 - (void)postInvalWithRect:(const SkIRect*)r {
111 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0]; 111 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0];
112 [self setNeedsDisplay]; 112 [self setNeedsDisplay];
113 } 113 }
114 114
115 @end 115 @end
OLDNEW
« no previous file with comments | « dm/DMGpuGMTask.cpp ('k') | experimental/iOSSampleApp/SkSampleUIView.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698