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

Unified Diff: cc/test/tiled_layer_test_common.cc

Issue 197883017: SkColorType instead of (deprecated) SkBitmap::Config (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 side-by-side diff with in-line comments
Download patch
Index: cc/test/tiled_layer_test_common.cc
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc
index a0dbfc775e3fd695da26ed7d7864cba921186604..430eddf0626fb08164e3ec28461261421a9ec8a1 100644
--- a/cc/test/tiled_layer_test_common.cc
+++ b/cc/test/tiled_layer_test_common.cc
@@ -9,8 +9,7 @@ namespace cc {
FakeLayerUpdater::Resource::Resource(FakeLayerUpdater* layer,
scoped_ptr<PrioritizedResource> texture)
: LayerUpdater::Resource(texture.Pass()), layer_(layer) {
- bitmap_.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
- bitmap_.allocPixels();
+ bitmap_.allocN32Pixels(10, 10);
}
FakeLayerUpdater::Resource::~Resource() {}

Powered by Google App Engine
This is Rietveld 408576698