~alan-griffiths/mir/knee-jerk-mir_surface_state_automatic

« back to all changes in this revision

Viewing changes to tests/utils/android_graphics.cpp

  • Committer: Kevin DuBois
  • Date: 2012-11-13 01:36:29 UTC
  • mfrom: (245 trunk)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: kevin.dubois@canonical.com-20121113013629-q4496w4mp5e33auk
merge in base branch. move the demo clients to a new directory, examples/

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    
69
69
 
70
70
    int *buffer_vaddr;
71
 
    
72
 
    int ret;
 
71
   
 
72
    int ret; 
73
73
    ret = module->lock(module, native_handle, GRALLOC_USAGE_SW_WRITE_OFTEN,
74
74
                0, 0, width, height, (void**) &buffer_vaddr);
 
75
    if (!ret)
 
76
        return;
 
77
 
75
78
    int j;
76
79
    for(i=0; i<width; i++)
77
80
    {