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

Side by Side Diff: tests/DrawBitmapRectTest.cpp

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 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
« no previous file with comments | « tests/DeferredCanvasTest.cpp ('k') | tests/FrontBufferedStreamTest.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 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 "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkData.h" 10 #include "SkData.h"
11 #include "SkDiscardableMemoryPool.h" 11 #include "SkDiscardableMemoryPool.h"
12 #include "SkImageGeneratorPriv.h" 12 #include "SkImageGeneratorPriv.h"
13 #include "SkMatrixUtils.h" 13 #include "SkMatrixUtils.h"
14 #include "SkPaint.h" 14 #include "SkPaint.h"
15 #include "SkRandom.h" 15 #include "SkRandom.h"
16 #include "SkShader.h" 16 #include "SkShader.h"
17 #include "SkSurface.h" 17 #include "SkSurface.h"
18 #include "Test.h" 18 #include "Test.h"
19 19
20 // A BitmapFactory that always fails when asked to return pixels. 20 // A BitmapFactory that always fails when asked to return pixels.
21 class FailureImageGenerator : public SkImageGenerator { 21 class FailureImageGenerator : public SkImageGenerator {
22 public: 22 public:
23 FailureImageGenerator() : SkImageGenerator(SkImageInfo::MakeN32Premul(100, 1 00)) {} 23 FailureImageGenerator() : SkImageGenerator(SkImageInfo::MakeN32Premul(100, 1 00)) {}
24 protected: 24 protected:
25 #ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO 25 #ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO
26 bool onGetInfo(SkImageInfo* info) SK_OVERRIDE { 26 bool onGetInfo(SkImageInfo* info) override {
27 *info = SkImageInfo::MakeN32Premul(100, 100); 27 *info = SkImageInfo::MakeN32Premul(100, 100);
28 return true; 28 return true;
29 } 29 }
30 #endif 30 #endif
31 // default onGetPixels() returns kUnimplemented, which is what we want. 31 // default onGetPixels() returns kUnimplemented, which is what we want.
32 }; 32 };
33 33
34 // crbug.com/295895 34 // crbug.com/295895
35 // Crashing in skia when a pixelref fails in lockPixels 35 // Crashing in skia when a pixelref fails in lockPixels
36 // 36 //
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 309
310 // ensure that we draw nothing if srcR does not intersect the bitmap 310 // ensure that we draw nothing if srcR does not intersect the bitmap
311 REPORTER_ASSERT(reporter, check_for_all_zeros(dst)); 311 REPORTER_ASSERT(reporter, check_for_all_zeros(dst));
312 312
313 test_nan_antihair(); 313 test_nan_antihair();
314 test_giantrepeat_crbug118018(reporter); 314 test_giantrepeat_crbug118018(reporter);
315 315
316 test_treatAsSprite(reporter); 316 test_treatAsSprite(reporter);
317 test_faulty_pixelref(reporter); 317 test_faulty_pixelref(reporter);
318 } 318 }
OLDNEW
« no previous file with comments | « tests/DeferredCanvasTest.cpp ('k') | tests/FrontBufferedStreamTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698