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

Side by Side Diff: tests/BitmapCopyTest.cpp

Issue 1885623002: Make more unit tests run on Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | tests/ClearTest.cpp » ('j') | tests/Test.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkRect.h" 9 #include "SkRect.h"
10 #include "SkTemplates.h" 10 #include "SkTemplates.h"
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 } 632 }
633 } 633 }
634 634
635 #if SK_SUPPORT_GPU 635 #if SK_SUPPORT_GPU
636 636
637 #include "GrContext.h" 637 #include "GrContext.h"
638 #include "SkGr.h" 638 #include "SkGr.h"
639 #include "SkColorPriv.h" 639 #include "SkColorPriv.h"
640 /** Tests calling copyTo on a texture backed bitmap. Tests that all BGRA_8888/RG BA_8888 combinations 640 /** Tests calling copyTo on a texture backed bitmap. Tests that all BGRA_8888/RG BA_8888 combinations
641 of src and dst work. This test should be removed when SkGrPixelRef is remove d. */ 641 of src and dst work. This test should be removed when SkGrPixelRef is remove d. */
642 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(BitmapCopy_Texture, reporter, ctxInfo) { 642 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(BitmapCopy_Texture, reporter, ctxInfo) {
643 static const SkPMColor kData[] = { 643 static const SkPMColor kData[] = {
644 0xFF112233, 0xAF224499, 644 0xFF112233, 0xAF224499,
645 0xEF004466, 0x80773311 645 0xEF004466, 0x80773311
646 }; 646 };
647 647
648 uint32_t swizData[SK_ARRAY_COUNT(kData)]; 648 uint32_t swizData[SK_ARRAY_COUNT(kData)];
649 for (size_t i = 0; i < SK_ARRAY_COUNT(kData); ++i) { 649 for (size_t i = 0; i < SK_ARRAY_COUNT(kData); ++i) {
650 swizData[i] = SkSwizzle_RB(kData[i]); 650 swizData[i] = SkSwizzle_RB(kData[i]);
651 } 651 }
652 652
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 } 710 }
711 } 711 }
712 dstBmpPixels += dstBmp.rowBytes(); 712 dstBmpPixels += dstBmp.rowBytes();
713 } 713 }
714 } 714 }
715 } 715 }
716 } 716 }
717 } 717 }
718 718
719 #endif 719 #endif
OLDNEW
« no previous file with comments | « no previous file | tests/ClearTest.cpp » ('j') | tests/Test.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698