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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 247263005: Remove TransportDIB methods from RenderProcess(Host) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: content/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 284332f50459a88e444d692d636c03b2ba23e53d..25cc24ad8fbbf1dcb6272adf5e26feda12269dae 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -22,7 +22,6 @@
#include "ipc/ipc_channel_proxy.h"
#include "ipc/ipc_platform_file.h"
#include "mojo/public/cpp/system/core.h"
-#include "ui/surface/transport_dib.h"
struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params;
@@ -104,8 +103,6 @@ class CONTENT_EXPORT RenderProcessHostImpl
virtual bool FastShutdownIfPossible() OVERRIDE;
virtual void DumpHandles() OVERRIDE;
virtual base::ProcessHandle GetHandle() const OVERRIDE;
- virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE;
- virtual TransportDIB* MapTransportDIB(TransportDIB::Id dib_id) OVERRIDE;
virtual BrowserContext* GetBrowserContext() const OVERRIDE;
virtual bool InSameStoragePartition(
StoragePartition* partition) const OVERRIDE;
@@ -333,18 +330,6 @@ class CONTENT_EXPORT RenderProcessHostImpl
// The filter for MessagePort messages coming from the renderer.
scoped_refptr<MessagePortMessageFilter> message_port_message_filter_;
- // A map of transport DIB ids to cached TransportDIBs
- std::map<TransportDIB::Id, TransportDIB*> cached_dibs_;
-
- enum {
- // This is the maximum size of |cached_dibs_|
- MAX_MAPPED_TRANSPORT_DIBS = 3,
- };
-
- void ClearTransportDIBCache();
- // This is used to clear our cache five seconds after the last use.
- base::DelayTimer<RenderProcessHostImpl> cached_dibs_cleaner_;
-
// Used in single-process mode.
scoped_ptr<base::Thread> in_process_renderer_;
« no previous file with comments | « content/browser/media/webrtc_browsertest.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698