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

Side by Side Diff: Source/platform/graphics/GraphicsContextTest.cpp

Issue 1001703003: Take NativeImageSkia out behind the woodshed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make bitmapForCurrentFrame() return SkBitmap by value. 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 10 matching lines...) Expand all
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 #include "config.h" 25 #include "config.h"
26 26
27 #include "platform/graphics/GraphicsContext.h" 27 #include "platform/graphics/GraphicsContext.h"
28 28
29 #include "platform/graphics/BitmapImage.h" 29 #include "platform/graphics/BitmapImage.h"
30 #include "platform/graphics/ImageBuffer.h" 30 #include "platform/graphics/ImageBuffer.h"
31 #include "platform/graphics/skia/NativeImageSkia.h"
32 #include "third_party/skia/include/core/SkBitmap.h" 31 #include "third_party/skia/include/core/SkBitmap.h"
33 #include "third_party/skia/include/core/SkCanvas.h" 32 #include "third_party/skia/include/core/SkCanvas.h"
34 #include "third_party/skia/include/core/SkPicture.h" 33 #include "third_party/skia/include/core/SkPicture.h"
35 #include "third_party/skia/include/core/SkShader.h" 34 #include "third_party/skia/include/core/SkShader.h"
36 #include "third_party/skia/include/effects/SkBlurDrawLooper.h" 35 #include "third_party/skia/include/effects/SkBlurDrawLooper.h"
37 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 36 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
38 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" 37 #include "third_party/skia/include/effects/SkBlurMaskFilter.h"
39 38
40 #include <gtest/gtest.h> 39 #include <gtest/gtest.h>
41 40
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 271
273 // endRecording finally makes the picture accessible 272 // endRecording finally makes the picture accessible
274 RefPtr<const SkPicture> picture = context.endRecording(); 273 RefPtr<const SkPicture> picture = context.endRecording();
275 EXPECT_TRUE(picture); 274 EXPECT_TRUE(picture);
276 EXPECT_TRUE(picture->unique()); 275 EXPECT_TRUE(picture->unique());
277 276
278 context.endRecording(); 277 context.endRecording();
279 } 278 }
280 279
281 } // namespace 280 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698