Index: chrome/browser/renderer_host/backing_store.h |
=================================================================== |
--- chrome/browser/renderer_host/backing_store.h (revision 25977) |
+++ chrome/browser/renderer_host/backing_store.h (working copy) |
@@ -17,7 +17,7 @@ |
#elif defined(OS_MACOSX) |
#include "base/scoped_cftyperef.h" |
#include "skia/ext/platform_canvas.h" |
-#elif defined(OS_LINUX) |
+#elif defined(USE_X11) |
#include "chrome/common/x11_util.h" |
#endif |
@@ -33,7 +33,7 @@ |
public: |
#if defined(OS_WIN) || defined(OS_MACOSX) |
BackingStore(RenderWidgetHost* widget, const gfx::Size& size); |
-#elif defined(OS_LINUX) |
+#elif defined(USE_X11) |
// Create a backing store on the X server. The visual is an Xlib Visual |
// describing the format of the target window and the depth is the color |
// depth of the X window which will be drawn into. |
@@ -71,7 +71,7 @@ |
// Paint the layer into a graphics context--if the target is a window, |
// this should be a GPU->GPU copy (and therefore very fast). |
void PaintToRect(const gfx::Rect& dest_rect, CGContextRef target); |
-#elif defined(OS_LINUX) |
+#elif defined(USE_X11) |
Display* display() const { return display_; } |
XID root_window() const { return root_window_; }; |
@@ -124,7 +124,7 @@ |
#elif defined(OS_MACOSX) |
scoped_cftyperef<CGContextRef> cg_bitmap_; |
scoped_cftyperef<CGLayerRef> cg_layer_; |
-#elif defined(OS_LINUX) |
+#elif defined(USE_X11) |
// Paints the bitmap from the renderer onto the backing store without |
// using Xrender to composite the pixmaps. |
void PaintRectWithoutXrender(TransportDIB* bitmap, |