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

Side by Side Diff: src/core/SkBitmapProcShader.h

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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 8
9 9
10 #ifndef SkBitmapProcShader_DEFINED 10 #ifndef SkBitmapProcShader_DEFINED
(...skipping 19 matching lines...) Expand all
30 static bool CanDo(const SkBitmap&, TileMode tx, TileMode ty); 30 static bool CanDo(const SkBitmap&, TileMode tx, TileMode ty);
31 31
32 SK_DEVELOPER_TO_STRING() 32 SK_DEVELOPER_TO_STRING()
33 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapProcShader) 33 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapProcShader)
34 34
35 #if SK_SUPPORT_GPU 35 #if SK_SUPPORT_GPU
36 GrEffectRef* asNewEffect(GrContext*, const SkPaint&) const SK_OVERRIDE; 36 GrEffectRef* asNewEffect(GrContext*, const SkPaint&) const SK_OVERRIDE;
37 #endif 37 #endif
38 38
39 protected: 39 protected:
40 SkBitmapProcShader(SkFlattenableReadBuffer& ); 40 SkBitmapProcShader(SkReadBuffer& );
41 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 41 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
42 42
43 SkBitmap fRawBitmap; // experimental for RLE encoding 43 SkBitmap fRawBitmap; // experimental for RLE encoding
44 SkBitmapProcState fState; 44 SkBitmapProcState fState;
45 uint32_t fFlags; 45 uint32_t fFlags;
46 46
47 private: 47 private:
48 typedef SkShader INHERITED; 48 typedef SkShader INHERITED;
49 }; 49 };
50 50
51 #endif 51 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698