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

Side by Side Diff: chrome/plugin/webplugin_proxy.h

Issue 3052039: If SHM pixmaps support is available, for example, Intel drivers now support t... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/plugin/webplugin_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_PROXY_H_
6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ 6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #if defined(USE_X11)
12 #include "app/x11_util.h"
13 #endif
11 #include "app/surface/transport_dib.h" 14 #include "app/surface/transport_dib.h"
12 #include "base/hash_tables.h" 15 #include "base/hash_tables.h"
13 #include "base/ref_counted.h" 16 #include "base/ref_counted.h"
14 #if defined(OS_MACOSX) 17 #if defined(OS_MACOSX)
15 #include "base/scoped_cftyperef.h" 18 #include "base/scoped_cftyperef.h"
16 #endif 19 #endif
17 #include "base/scoped_handle.h" 20 #include "base/scoped_handle.h"
18 #include "base/scoped_ptr.h" 21 #include "base/scoped_ptr.h"
19 #include "base/shared_memory.h" 22 #include "base/shared_memory.h"
20 #include "base/timer.h" 23 #include "base/timer.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 scoped_ptr<TransportDIB> background_dib_; 181 scoped_ptr<TransportDIB> background_dib_;
179 scoped_cftyperef<CGContextRef> windowless_context_; 182 scoped_cftyperef<CGContextRef> windowless_context_;
180 scoped_cftyperef<CGContextRef> background_context_; 183 scoped_cftyperef<CGContextRef> background_context_;
181 #else 184 #else
182 scoped_ptr<skia::PlatformCanvas> windowless_canvas_; 185 scoped_ptr<skia::PlatformCanvas> windowless_canvas_;
183 scoped_ptr<skia::PlatformCanvas> background_canvas_; 186 scoped_ptr<skia::PlatformCanvas> background_canvas_;
184 187
185 #if defined(USE_X11) 188 #if defined(USE_X11)
186 scoped_ptr<TransportDIB> windowless_dib_; 189 scoped_ptr<TransportDIB> windowless_dib_;
187 scoped_ptr<TransportDIB> background_dib_; 190 scoped_ptr<TransportDIB> background_dib_;
191 // If we can use SHM pixmaps for windowless plugin painting or not.
192 bool use_shm_pixmap_;
193 // The SHM pixmap for windowless plugin painting.
194 XID windowless_shm_pixmap_;
188 #endif 195 #endif
189 196
190 #endif 197 #endif
191 198
192 // Contains the routing id of the host render view. 199 // Contains the routing id of the host render view.
193 int host_render_view_routing_id_; 200 int host_render_view_routing_id_;
194 201
195 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; 202 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_;
196 }; 203 };
197 204
198 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ 205 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/plugin/webplugin_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698