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

Unified Diff: cc/test/fake_display_list_raster_source.cc

Issue 1835843002: WIP: Fix foreignObject cullrect Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/test/skia_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_display_list_raster_source.cc
diff --git a/cc/test/fake_display_list_raster_source.cc b/cc/test/fake_display_list_raster_source.cc
index 8acca504aa6ca2e4c2d0029d1998ef70eed59386..e64c0d647902647ba5a5f5e7feb85b9fa8247cec 100644
--- a/cc/test/fake_display_list_raster_source.cc
+++ b/cc/test/fake_display_list_raster_source.cc
@@ -25,15 +25,14 @@ FakeDisplayListRasterSource::CreateFilled(const gfx::Size& size) {
auto recording_source =
FakeDisplayListRecordingSource::CreateFilledRecordingSource(size);
- SkPaint red_paint;
- 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);
+ // Set an arbitrary non-opaque alpha in order to force the source non-solid.
+ // There are a number of ways to ensure the raster source is not solid. This
+ // is just one of them.
+ salmon_pink_paint.setAlpha(127);
+ recording_source->add_draw_rect_with_paint(gfx::Rect(size),
+ salmon_pink_paint);
recording_source->Rerecord();
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/test/skia_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698