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

Unified Diff: cc/test/fake_raster_source.cc

Issue 2084313002: Use alpha rather than inset rect for FakeRasterSource::CreateFilled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_raster_source.cc
diff --git a/cc/test/fake_raster_source.cc b/cc/test/fake_raster_source.cc
index 00af0f784e4b7f22b7ae2e773c41ea1a2663ca98..11f7c2322a88914f8875a48399ebc8e66db30652 100644
--- a/cc/test/fake_raster_source.cc
+++ b/cc/test/fake_raster_source.cc
@@ -28,11 +28,11 @@ scoped_refptr<FakeRasterSource> FakeRasterSource::CreateFilled(
red_paint.setColor(SK_ColorRED);
recording_source->add_draw_rect_with_paint(gfx::Rect(size), red_paint);
- gfx::Size smaller_size(size.width() - 10, size.height() - 10);
- SkPaint green_paint;
- green_paint.setColor(SK_ColorGREEN);
- recording_source->add_draw_rect_with_paint(gfx::Rect(smaller_size),
- green_paint);
+ SkPaint salmon_pink_paint;
+ salmon_pink_paint.setColor(SK_ColorRED);
+ salmon_pink_paint.setAlpha(128);
+ recording_source->add_draw_rect_with_paint(gfx::Rect(size),
+ salmon_pink_paint);
recording_source->Rerecord();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698