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

Side by Side Diff: experimental/DrawingBoard/SampleDrawingClient.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add flag to expose SkFloatToScalar to chromium Created 7 years 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 | « bench/RectBench.cpp ('k') | experimental/PdfViewer/src/SkPdfRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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);
OLDNEW
« no previous file with comments | « bench/RectBench.cpp ('k') | experimental/PdfViewer/src/SkPdfRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698