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/utils/SkTextureCompressor_Blitter.h

Issue 1148793007: change SkDraw and all Blitters to use pixmap instead of bitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 6 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 | « src/utils/SkTextureCompressor.cpp ('k') | tests/DeviceLooperTest.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
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 #ifndef SkTextureCompressor_Blitter_DEFINED 8 #ifndef SkTextureCompressor_Blitter_DEFINED
9 #define SkTextureCompressor_Blitter_DEFINED 9 #define SkTextureCompressor_Blitter_DEFINED
10 10
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 } 361 }
362 362
363 dst += EncodedBlockSize; 363 dst += EncodedBlockSize;
364 } 364 }
365 } 365 }
366 } 366 }
367 367
368 // If the blitter just sets a single value for each pixel, return the 368 // If the blitter just sets a single value for each pixel, return the
369 // bitmap it draws into, and assign value. If not, return NULL and ignore 369 // bitmap it draws into, and assign value. If not, return NULL and ignore
370 // the value parameter. 370 // the value parameter.
371 const SkBitmap* justAnOpaqueColor(uint32_t* value) override { 371 const SkPixmap* justAnOpaqueColor(uint32_t* value) override {
372 return NULL; 372 return NULL;
373 } 373 }
374 374
375 /** 375 /**
376 * Compressed texture blitters only really work correctly if they get 376 * Compressed texture blitters only really work correctly if they get
377 * BlockDim rows at a time. That being said, this blitter tries it's best 377 * BlockDim rows at a time. That being said, this blitter tries it's best
378 * to preserve semantics if blitAntiH doesn't get called in too many 378 * to preserve semantics if blitAntiH doesn't get called in too many
379 * weird ways... 379 * weird ways...
380 */ 380 */
381 int requestRowsPreserved() const override { return BlockDim; } 381 int requestRowsPreserved() const override { return BlockDim; }
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 mask, BlockDim, mask); 724 mask, BlockDim, mask);
725 } 725 }
726 } 726 }
727 #endif // PEDANTIC_BLIT_RECT 727 #endif // PEDANTIC_BLIT_RECT
728 728
729 }; 729 };
730 730
731 } // namespace SkTextureCompressor 731 } // namespace SkTextureCompressor
732 732
733 #endif // SkTextureCompressor_Blitter_DEFINED 733 #endif // SkTextureCompressor_Blitter_DEFINED
OLDNEW
« no previous file with comments | « src/utils/SkTextureCompressor.cpp ('k') | tests/DeviceLooperTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698