Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: chrome/browser/renderer_host/backing_store.h

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/process_singleton.h ('k') | chrome/browser/renderer_host/backing_store_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « chrome/browser/process_singleton.h ('k') | chrome/browser/renderer_host/backing_store_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698