OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_GFX_IMAGE_CAIRO_CACHED_SURFACE_H_ | 5 #ifndef UI_GFX_IMAGE_CAIRO_CACHED_SURFACE_H_ |
6 #define UI_GFX_IMAGE_CAIRO_CACHED_SURFACE_H_ | 6 #define UI_GFX_IMAGE_CAIRO_CACHED_SURFACE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ui/base/ui_export.h" | 10 #include "ui/gfx/gfx_export.h" |
11 | 11 |
12 typedef struct _GdkDisplay GdkDisplay; | 12 typedef struct _GdkDisplay GdkDisplay; |
13 typedef struct _GdkPixbuf GdkPixbuf; | 13 typedef struct _GdkPixbuf GdkPixbuf; |
14 typedef struct _GtkWidget GtkWidget; | 14 typedef struct _GtkWidget GtkWidget; |
15 typedef struct _cairo cairo_t; | 15 typedef struct _cairo cairo_t; |
16 typedef struct _cairo_surface cairo_surface_t; | 16 typedef struct _cairo_surface cairo_surface_t; |
17 | 17 |
18 namespace gfx { | 18 namespace gfx { |
19 | 19 |
20 // A helper class that takes a GdkPixbuf* and renders it to the screen. Unlike | 20 // A helper class that takes a GdkPixbuf* and renders it to the screen. Unlike |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Our list of cached surfaces. 99% of the time, this will only contain a | 76 // Our list of cached surfaces. 99% of the time, this will only contain a |
77 // single entry. At most two. We need to get this right for multiple displays | 77 // single entry. At most two. We need to get this right for multiple displays |
78 // to work correct, since each GdkDisplay is a different display server. | 78 // to work correct, since each GdkDisplay is a different display server. |
79 mutable SurfaceVector surface_map_; | 79 mutable SurfaceVector surface_map_; |
80 }; | 80 }; |
81 | 81 |
82 } // namespace gfx | 82 } // namespace gfx |
83 | 83 |
84 #endif // UI_GFX_IMAGE_CAIRO_CACHED_SURFACE_H_ | 84 #endif // UI_GFX_IMAGE_CAIRO_CACHED_SURFACE_H_ |
OLD | NEW |