[gnome-shell] recorder: Stop using deprecated cogl_read_pixels
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] recorder: Stop using deprecated cogl_read_pixels
- Date: Sun, 11 Jan 2015 11:53:24 +0000 (UTC)
commit e150a9cff243184cd835b37c6167f48de5ef8412
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sun Jan 11 12:49:44 2015 +0100
recorder: Stop using deprecated cogl_read_pixels
src/shell-recorder.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/shell-recorder.c b/src/shell-recorder.c
index 325b2c7..8ab1b05 100644
--- a/src/shell-recorder.c
+++ b/src/shell-recorder.c
@@ -438,13 +438,13 @@ recorder_record_frame (ShellRecorder *recorder)
size = recorder->area.width * recorder->area.height * 4;
data = g_malloc (recorder->area.width * 4 * recorder->area.height);
- cogl_read_pixels (recorder->area.x,
- recorder->area.y,
- recorder->area.width,
- recorder->area.height,
- COGL_READ_PIXELS_COLOR_BUFFER,
- CLUTTER_CAIRO_FORMAT_ARGB32,
- data);
+ cogl_framebuffer_read_pixels (cogl_get_draw_framebuffer (),
+ recorder->area.x,
+ recorder->area.y,
+ recorder->area.width,
+ recorder->area.height,
+ CLUTTER_CAIRO_FORMAT_ARGB32,
+ data);
buffer = gst_buffer_new();
gst_buffer_insert_memory (buffer, -1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]