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

Unified Diff: content/plugin/webplugin_proxy.h

Issue 234533002: Remove a bunch of TOOLKIT_GTK in content/ and gpu/, as well as NPAPI plugins on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, skip changing browser_main_loop.cc because of presubmit issues, will follow up Created 6 years, 8 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 | « content/plugin/plugin_thread.cc ('k') | content/plugin/webplugin_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/webplugin_proxy.h
diff --git a/content/plugin/webplugin_proxy.h b/content/plugin/webplugin_proxy.h
index dfa06c57b72ecc132d5631f6ab3c1e81ca9a5bfd..314bd5a30775c7f3af927076cc9c23ece8dc2287 100644
--- a/content/plugin/webplugin_proxy.h
+++ b/content/plugin/webplugin_proxy.h
@@ -23,9 +23,6 @@
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "url/gurl.h"
-#if defined(USE_X11)
-#include "ui/base/x/x11_util.h"
-#endif
#include "ui/gl/gpu_preference.h"
#include "ui/surface/transport_dib.h"
@@ -170,17 +167,6 @@ class WebPluginProxy : public WebPlugin,
const gfx::Rect& window_rect,
scoped_ptr<TransportDIB>* dib_out,
base::ScopedCFTypeRef<CGContextRef>* cg_context_out);
-#elif defined(USE_X11)
- static void CreateDIBAndCanvasFromHandle(
- const TransportDIB::Handle& dib_handle,
- const gfx::Rect& window_rect,
- scoped_refptr<SharedTransportDIB>* dib_out,
- skia::RefPtr<SkCanvas>* canvas);
-
- static void CreateShmPixmapFromDIB(
- TransportDIB* dib,
- const gfx::Rect& window_rect,
- XID* pixmap_out);
#endif
// Updates the shared memory sections where windowless plugins paint.
@@ -196,13 +182,6 @@ class WebPluginProxy : public WebPlugin,
skia::RefPtr<SkCanvas> windowless_canvas() const {
return windowless_canvases_[windowless_buffer_index_];
}
-
-#if defined(USE_X11)
- XID windowless_shm_pixmap() const {
- return windowless_shm_pixmaps_[windowless_buffer_index_];
- }
-#endif
-
#endif
typedef base::hash_map<int, WebPluginResourceClient*> ResourceClientMap;
@@ -230,15 +209,6 @@ class WebPluginProxy : public WebPlugin,
scoped_ptr<WebPluginAcceleratedSurfaceProxy> accelerated_surface_;
#else
skia::RefPtr<SkCanvas> windowless_canvases_[2];
-
-#if defined(USE_X11)
- scoped_refptr<SharedTransportDIB> windowless_dibs_[2];
- // If we can use SHM pixmaps for windowless plugin painting or not.
- bool use_shm_pixmap_;
- // The SHM pixmaps for windowless plugin painting.
- XID windowless_shm_pixmaps_[2];
-#endif
-
#endif
// Contains the routing id of the host render view.
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/plugin/webplugin_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698