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

Side by Side Diff: include/core/SkShader.h

Issue 179343005: Add a class to allocate small objects w/o extra calls to new. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename the .h file Created 6 years, 9 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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef SkShader_DEFINED 9 #ifndef SkShader_DEFINED
10 #define SkShader_DEFINED 10 #define SkShader_DEFINED
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 364
365 SkShader(SkReadBuffer& ); 365 SkShader(SkReadBuffer& );
366 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 366 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
367 private: 367 private:
368 SkMatrix fLocalMatrix; 368 SkMatrix fLocalMatrix;
369 SkMatrix fTotalInverse; 369 SkMatrix fTotalInverse;
370 uint8_t fPaintAlpha; 370 uint8_t fPaintAlpha;
371 uint8_t fTotalInverseClass; 371 uint8_t fTotalInverseClass;
372 SkDEBUGCODE(SkBool8 fInSetContext;) 372 SkDEBUGCODE(SkBool8 fInSetContext;)
373 373
374 static SkShader* CreateBitmapShader(const SkBitmap& src,
375 TileMode, TileMode,
376 void* storage, size_t storageSize);
377 friend class SkAutoBitmapShaderInstall;
378 typedef SkFlattenable INHERITED; 374 typedef SkFlattenable INHERITED;
379 }; 375 };
380 376
381 #endif 377 #endif
OLDNEW
« no previous file with comments | « gyp/tests.gypi ('k') | src/core/SkBitmapProcShader.h » ('j') | src/core/SkSmallAllocator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698