~ubuntu-branches/ubuntu/precise/mutter/precise

« back to all changes in this revision

Viewing changes to src/compositor/meta-background-actor.c

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2011-08-24 14:53:37 UTC
  • mfrom: (0.9.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110824145337-ciqrupsuyrbyfg3l
Tags: 3.1.4-0ubuntu1
* New upstream release
  - Fix Adwaita window decoration (LP: #828543)
* debian/control.in: Bump libclutter-1.0-dev build-dependency to 1.7.5
* debian/patches/03_link_gles2.patch: Refreshed
* debian/libmutter0.symbols: Adjust .symbols file

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
  CoglHandle texture;
114
114
 
115
115
  clutter_stage_get_color (CLUTTER_STAGE (stage), &color);
 
116
 
 
117
  /* Slicing will prevent COGL from using hardware texturing for
 
118
   * the tiled 1x1 pixmap, and will cause it to draw the window
 
119
   * background in millions of separate 1x1 rectangles */
116
120
  texture = meta_create_color_texture_4ub (color.red, color.green,
117
 
                                           color.blue, 0xff);
 
121
                                           color.blue, 0xff,
 
122
                                           COGL_TEXTURE_NO_SLICING);
118
123
  set_texture (self, texture);
119
124
  cogl_handle_unref (texture);
120
125
}
228
233
    }
229
234
}
230
235
 
231
 
#if CLUTTER_CHECK_VERSION(1, 5, 2)
232
236
static gboolean
233
237
meta_background_actor_get_paint_volume (ClutterActor       *actor,
234
238
                                        ClutterPaintVolume *volume)
243
247
 
244
248
  return TRUE;
245
249
}
246
 
#endif
247
250
 
248
251
static void
249
252
meta_background_actor_class_init (MetaBackgroundActorClass *klass)
256
259
  actor_class->get_preferred_width = meta_background_actor_get_preferred_width;
257
260
  actor_class->get_preferred_height = meta_background_actor_get_preferred_height;
258
261
  actor_class->paint = meta_background_actor_paint;
259
 
#if CLUTTER_CHECK_VERSION(1, 5, 2)
260
262
  actor_class->get_paint_volume = meta_background_actor_get_paint_volume;
261
 
#endif
262
263
}
263
264
 
264
265
static void