| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/gtk/cairo_cached_surface.h" | 5 #include "chrome/browser/gtk/cairo_cached_surface.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 | 11 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #endif | 65 #endif |
| 66 | 66 |
| 67 cairo_t* copy_cr = cairo_create(surface_); | 67 cairo_t* copy_cr = cairo_create(surface_); |
| 68 gdk_cairo_set_source_pixbuf(copy_cr, pixbuf_, 0, 0); | 68 gdk_cairo_set_source_pixbuf(copy_cr, pixbuf_, 0, 0); |
| 69 cairo_paint(copy_cr); | 69 cairo_paint(copy_cr); |
| 70 cairo_destroy(copy_cr); | 70 cairo_destroy(copy_cr); |
| 71 } | 71 } |
| 72 | 72 |
| 73 cairo_set_source_surface(cr, surface_, x, y); | 73 cairo_set_source_surface(cr, surface_, x, y); |
| 74 } | 74 } |
| OLD | NEW |