projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72357f3
)
lib: Don't take a reference to the surface in get_cairo_surface()
author
Damien Lespiau
<damien.lespiau@intel.com>
Mon, 30 Jun 2014 15:34:20 +0000
(16:34 +0100)
committer
Damien Lespiau
<damien.lespiau@intel.com>
Tue, 29 Jul 2014 11:13:41 +0000
(12:13 +0100)
We don't need to keep a reference to the surface, the cairo context will
keep a reference to it until we destroy it.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
lib/igt_fb.c
patch
|
blob
|
history
diff --git
a/lib/igt_fb.c
b/lib/igt_fb.c
index
83f4343
..
d07af0d
100644
(file)
--- a/
lib/igt_fb.c
+++ b/
lib/igt_fb.c
@@
-547,7
+547,7
@@
static cairo_surface_t *get_cairo_surface(int fd, struct igt_fb *fb)
I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU);
igt_assert(cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS);
- return
cairo_surface_reference(fb->cairo_surface)
;
+ return
fb->cairo_surface
;
}
/**