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

Side by Side Diff: cc/tiles/software_image_decode_controller_unittest.cc

Issue 1888713002: cc: Merge TileTaskRunner to TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename_tile_task_client
Patch Set: feedback 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 | « cc/tiles/software_image_decode_controller.cc ('k') | cc/tiles/tile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/tiles/software_image_decode_controller.h" 5 #include "cc/tiles/software_image_decode_controller.h"
6 6
7 #include "cc/playback/draw_image.h" 7 #include "cc/playback/draw_image.h"
8 #include "cc/raster/tile_task.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace cc { 11 namespace cc {
11 namespace { 12 namespace {
12 13
13 skia::RefPtr<SkImage> CreateImage(int width, int height) { 14 skia::RefPtr<SkImage> CreateImage(int width, int height) {
14 SkImageInfo info = SkImageInfo::MakeN32Premul(width, height); 15 SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
15 SkBitmap bitmap; 16 SkBitmap bitmap;
16 bitmap.allocPixels(info); 17 bitmap.allocPixels(info);
17 return skia::AdoptRef(SkImage::NewFromBitmap(bitmap)); 18 return skia::AdoptRef(SkImage::NewFromBitmap(bitmap));
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 // SkImage object. 1034 // SkImage object.
1034 EXPECT_TRUE(decoded_draw_image.image() != image.get()); 1035 EXPECT_TRUE(decoded_draw_image.image() != image.get());
1035 EXPECT_EQ(kNone_SkFilterQuality, decoded_draw_image.filter_quality()); 1036 EXPECT_EQ(kNone_SkFilterQuality, decoded_draw_image.filter_quality());
1036 EXPECT_TRUE(decoded_draw_image.is_scale_adjustment_identity()); 1037 EXPECT_TRUE(decoded_draw_image.is_scale_adjustment_identity());
1037 1038
1038 controller.DrawWithImageFinished(draw_image, decoded_draw_image); 1039 controller.DrawWithImageFinished(draw_image, decoded_draw_image);
1039 controller.UnrefImage(draw_image); 1040 controller.UnrefImage(draw_image);
1040 } 1041 }
1041 } // namespace 1042 } // namespace
1042 } // namespace cc 1043 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/software_image_decode_controller.cc ('k') | cc/tiles/tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698