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

Unified Diff: chrome/browser/renderer_host/backing_store_xcb.cc

Issue 27147: Linux: server side backing stores (Closed)
Patch Set: ... Created 11 years, 10 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/renderer_host/backing_store_x.cc ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/backing_store_xcb.cc
diff --git a/chrome/browser/renderer_host/backing_store_xcb.cc b/chrome/browser/renderer_host/backing_store_xcb.cc
deleted file mode 100644
index ba6a12b7d764afef92a1012cb019803b982cc33e..0000000000000000000000000000000000000000
--- a/chrome/browser/renderer_host/backing_store_xcb.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/renderer_host/backing_store.h"
-
-#include <xcb/xcb.h>
-
-#include "base/logging.h"
-#include "chrome/common/transport_dib.h"
-
-#ifdef NDEBUG
-#define XCB_CALL(func, ...) func(__VA_ARGS__)
-#else
-#define XCB_CALL(func, ...) do { \
- xcb_void_cookie_t cookie = func##_checked(__VA_ARGS__); \
- xcb_generic_error_t* error = xcb_request_check(connection_, cookie); \
- if (error) { \
- CHECK(false) << "XCB error" \
- << " code:" << error->error_code \
- << " type:" << error->response_type \
- << " sequence:" << error->sequence; \
- } \
-} while(false);
-#endif
-
-BackingStore::BackingStore(const gfx::Size& size,
- xcb_connection_t* connection,
- xcb_window_t window,
- bool use_shared_memory)
- : connection_(connection),
- use_shared_memory_(use_shared_memory),
- pixmap_(xcb_generate_id(connection)) {
- XCB_CALL(xcb_create_pixmap, connection_, 32, pixmap, window, size.width(),
- size.height());
-}
-
-BackingStore::~BackingStore() {
- XCB_CALL(xcb_free_pixmap, pixmap_);
-}
« no previous file with comments | « chrome/browser/renderer_host/backing_store_x.cc ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698