| OLD | NEW |
| 1 #include "SampleCode.h" | 1 #include "SampleCode.h" |
| 2 #include "SkView.h" | 2 #include "SkView.h" |
| 3 #include "SkCanvas.h" | 3 #include "SkCanvas.h" |
| 4 #include "SkGPipe.h" | 4 #include "SkGPipe.h" |
| 5 #include "SkSockets.h" | 5 #include "SkSockets.h" |
| 6 #include "SkNetPipeController.h" | 6 #include "SkNetPipeController.h" |
| 7 #include "SkCornerPathEffect.h" | 7 #include "SkCornerPathEffect.h" |
| 8 #include "SkColorPalette.h" | 8 #include "SkColorPalette.h" |
| 9 #include "SkOSMenu.h" | 9 #include "SkOSMenu.h" |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class DrawingClientView : public SampleView { | 37 class DrawingClientView : public SampleView { |
| 38 public: | 38 public: |
| 39 DrawingClientView() { | 39 DrawingClientView() { |
| 40 fSocket = NULL; | 40 fSocket = NULL; |
| 41 fTotalBytesRead = 0; | 41 fTotalBytesRead = 0; |
| 42 fPalette = new SkColorPalette; | 42 fPalette = new SkColorPalette; |
| 43 fPalette->setSize(100, 300); | 43 fPalette->setSize(100, 300); |
| 44 fPalette->setVisibleP(true); | 44 fPalette->setVisibleP(true); |
| 45 this->attachChildToFront(fPalette); | 45 this->attachChildToFront(fPalette); |
| 46 fPalette->unref(); | 46 fPalette->unref(); |
| 47 fBrushSize = SkFloatToScalar(2.5); | 47 fBrushSize = 2.5; |
| 48 fAA = false; | 48 fAA = false; |
| 49 fPaletteVisible = true; | 49 fPaletteVisible = true; |
| 50 fSync = true; | 50 fSync = true; |
| 51 fVector = true; | 51 fVector = true; |
| 52 } | 52 } |
| 53 ~DrawingClientView() { | 53 ~DrawingClientView() { |
| 54 if (fSocket) { | 54 if (fSocket) { |
| 55 delete fSocket; | 55 delete fSocket; |
| 56 } | 56 } |
| 57 fData.reset(); | 57 fData.reset(); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 bool fVector; | 269 bool fVector; |
| 270 | 270 |
| 271 typedef SampleView INHERITED; | 271 typedef SampleView INHERITED; |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 | 274 |
| 275 /////////////////////////////////////////////////////////////////////////////// | 275 /////////////////////////////////////////////////////////////////////////////// |
| 276 | 276 |
| 277 static SkView* MyFactory() { return new DrawingClientView; } | 277 static SkView* MyFactory() { return new DrawingClientView; } |
| 278 static SkViewRegister reg(MyFactory); | 278 static SkViewRegister reg(MyFactory); |
| OLD | NEW |