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

Side by Side Diff: tests/DrawBitmapRectTest.cpp

Issue 295243006: hide discardable factory from public imagegenerator api (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 "SkImageGenerator.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:
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 // ensure that we draw nothing if srcR does not intersect the bitmap 315 // ensure that we draw nothing if srcR does not intersect the bitmap
316 REPORTER_ASSERT(reporter, check_for_all_zeros(dst)); 316 REPORTER_ASSERT(reporter, check_for_all_zeros(dst));
317 317
318 test_nan_antihair(); 318 test_nan_antihair();
319 test_giantrepeat_crbug118018(reporter); 319 test_giantrepeat_crbug118018(reporter);
320 320
321 test_treatAsSprite(reporter); 321 test_treatAsSprite(reporter);
322 test_faulty_pixelref(reporter); 322 test_faulty_pixelref(reporter);
323 } 323 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698