diff options
author | Alexander Larsson <alexl@redhat.com> | 2017-01-11 16:14:03 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2017-01-11 16:14:03 +0100 |
commit | c00f8dce9f8076e3e914210dda62e7fd2207d1e4 (patch) | |
tree | 016ec44ab7b6eea3a595c8f2cdebe3ddb7d1196a /gtk/gtkrenderborder.c | |
parent | 275185d4157f40def0ec34c98058a98c4b98382f (diff) | |
download | gtk+-c00f8dce9f8076e3e914210dda62e7fd2207d1e4.tar.gz |
GtkSnapshot: Always use int for the translationwip/alexl/snapshot-int-translate
We already take ints when setting the translation, so it can't
currently take any other values. Additionally, I was seeing large
costs in int -> double -> int for the rects in
gtk_snapshot_clips_rect(), as all callers really are ints (widget
allocations) and the clip region is int-based.
This change completely cleared a 2% rectangle_init_from_graphene from
the profile and is likely to have nice performance effects elsewhere
too.
Diffstat (limited to 'gtk/gtkrenderborder.c')
-rw-r--r-- | gtk/gtkrenderborder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c index 31f5725efb..a42f74e42b 100644 --- a/gtk/gtkrenderborder.c +++ b/gtk/gtkrenderborder.c @@ -414,7 +414,7 @@ snapshot_frame_fill (GtkSnapshot *snapshot, { GskRoundedRect offset_outline; GskRenderNode *node; - double off_x, off_y; + int off_x, off_y; if (hidden_side) { |