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

Side by Side Diff: src/utils/SkTextureCompressor_Blitter.h

Issue 804813002: Cleanup: Mark some overridden methods with 'SK_OVERRIDE'. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/images/SkImageDecoder_libjpeg.cpp ('k') | no next file » | 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 virtual const SkBitmap* justAnOpaqueColor(uint32_t* value) SK_OVERRIDE { 371 virtual const SkBitmap* justAnOpaqueColor(uint32_t* value) SK_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 virtual int requestRowsPreserved() const { return BlockDim; } 381 virtual int requestRowsPreserved() const SK_OVERRIDE { return BlockDim; }
382 382
383 private: 383 private:
384 static const int kPixelsPerBlock = BlockDim * BlockDim; 384 static const int kPixelsPerBlock = BlockDim * BlockDim;
385 385
386 // The longest possible run of pixels that this blitter will receive. 386 // The longest possible run of pixels that this blitter will receive.
387 // This is initialized in the constructor to 0x7FFE, which is one less 387 // This is initialized in the constructor to 0x7FFE, which is one less
388 // than the largest positive 16-bit integer. We make sure that it's one 388 // than the largest positive 16-bit integer. We make sure that it's one
389 // less for debugging purposes. We also don't make this variable static 389 // less for debugging purposes. We also don't make this variable static
390 // in order to make sure that we can construct a valid pointer to it. 390 // in order to make sure that we can construct a valid pointer to it.
391 const int16_t kLongestRun; 391 const int16_t kLongestRun;
(...skipping 332 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/images/SkImageDecoder_libjpeg.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698