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

Side by Side Diff: samplecode/SampleSlides.cpp

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 years, 10 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "SampleCode.h" 8 #include "SampleCode.h"
9 #include "SkBlurMask.h" 9 #include "SkBlurMask.h"
10 #include "SkBlurMaskFilter.h" 10 #include "SkBlurMaskFilter.h"
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkDevice.h" 12 #include "SkDevice.h"
13 #include "SkFlattenableBuffers.h" 13 #include "SkReadBuffer.h"
14 #include "SkWriteBuffer.h"
14 #include "SkGradientShader.h" 15 #include "SkGradientShader.h"
15 #include "SkLayerRasterizer.h" 16 #include "SkLayerRasterizer.h"
16 #include "SkPaint.h" 17 #include "SkPaint.h"
17 #include "SkView.h" 18 #include "SkView.h"
18 19
19 #define BG_COLOR 0xFFDDDDDD 20 #define BG_COLOR 0xFFDDDDDD
20 21
21 typedef void (*SlideProc)(SkCanvas*); 22 typedef void (*SlideProc)(SkCanvas*);
22 23
23 /////////////////////////////////////////////////////////////////////////////// 24 ///////////////////////////////////////////////////////////////////////////////
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 } 726 }
726 727
727 private: 728 private:
728 typedef SampleView INHERITED; 729 typedef SampleView INHERITED;
729 }; 730 };
730 731
731 ////////////////////////////////////////////////////////////////////////////// 732 //////////////////////////////////////////////////////////////////////////////
732 733
733 static SkView* MyFactory() { return new SlideView; } 734 static SkView* MyFactory() { return new SlideView; }
734 static SkViewRegister reg(MyFactory); 735 static SkViewRegister reg(MyFactory);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698