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

Unified Diff: content/common/gpu/gpu_channel_manager.h

Issue 10984004: Use a singleton 1x1 offscreen surface for all TextureImageTransportSurface instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor polish - consistently use the get() accessor. Created 8 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 | « no previous file | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.h
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h
index 3e4af65e944d0294b5f35cbb2c3939943d8c90f3..b256a56d8d0123b600f2f1140fefddf1ade58975 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -17,6 +17,7 @@
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gl/gl_surface.h"
namespace base {
class WaitableEvent;
@@ -92,6 +93,8 @@ class GpuChannelManager : public IPC::Listener,
SyncPointManager* sync_point_manager() { return sync_point_manager_; }
+ gfx::GLSurface* GetDefaultOffscreenSurface();
+
private:
// Message handlers.
void OnEstablishChannel(int client_id, bool share_context);
@@ -123,6 +126,7 @@ class GpuChannelManager : public IPC::Listener,
GpuWatchdog* watchdog_;
scoped_refptr<SyncPointManager> sync_point_manager_;
scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
+ scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
};
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698