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

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

Issue 354533004: Begin atlasing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Readd missing file Created 6 years, 5 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
« no previous file with comments | « include/gpu/GrRect.h ('k') | src/core/SkPicturePlayback.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 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 8
9 #ifndef SkPicturePlayback_DEFINED 9 #ifndef SkPicturePlayback_DEFINED
10 #define SkPicturePlayback_DEFINED 10 #define SkPicturePlayback_DEFINED
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 public: 346 public:
347 // All the operations between fStart and fStop (inclusive) will be repla ced with 347 // All the operations between fStart and fStop (inclusive) will be repla ced with
348 // a single drawBitmap call using fPos, fBM and fPaint. 348 // a single drawBitmap call using fPos, fBM and fPaint.
349 // fPaint will be NULL if the picture's paint wasn't copyable 349 // fPaint will be NULL if the picture's paint wasn't copyable
350 struct ReplacementInfo { 350 struct ReplacementInfo {
351 size_t fStart; 351 size_t fStart;
352 size_t fStop; 352 size_t fStop;
353 SkIPoint fPos; 353 SkIPoint fPos;
354 SkBitmap* fBM; // fBM is allocated so ReplacementInfo can remain POD 354 SkBitmap* fBM; // fBM is allocated so ReplacementInfo can remain POD
355 const SkPaint* fPaint; // Note: this object doesn't own the paint 355 const SkPaint* fPaint; // Note: this object doesn't own the paint
356
357 SkIRect fSrcRect;
356 }; 358 };
357 359
358 ~PlaybackReplacements() { this->freeAll(); } 360 ~PlaybackReplacements() { this->freeAll(); }
359 361
360 // Add a new replacement range. The replacement ranges should be 362 // Add a new replacement range. The replacement ranges should be
361 // sorted in increasing order and non-overlapping (esp. no nested 363 // sorted in increasing order and non-overlapping (esp. no nested
362 // saveLayers). 364 // saveLayers).
363 ReplacementInfo* push(); 365 ReplacementInfo* push();
364 366
365 private: 367 private:
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 428
427 void initForPlayback() const; 429 void initForPlayback() const;
428 430
429 #ifdef SK_BUILD_FOR_ANDROID 431 #ifdef SK_BUILD_FOR_ANDROID
430 SkMutex fDrawMutex; 432 SkMutex fDrawMutex;
431 bool fAbortCurrentPlayback; 433 bool fAbortCurrentPlayback;
432 #endif 434 #endif
433 }; 435 };
434 436
435 #endif 437 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrRect.h ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698