Index: content/browser/renderer_host/compositing_iosurface_context_mac.h |
diff --git a/content/browser/renderer_host/compositing_iosurface_context_mac.h b/content/browser/renderer_host/compositing_iosurface_context_mac.h |
index 5468da2c22cda36ef43af3fd0785615d129012f9..316940169fc791fd2c3eb2abbf818839549fd85c 100644 |
--- a/content/browser/renderer_host/compositing_iosurface_context_mac.h |
+++ b/content/browser/renderer_host/compositing_iosurface_context_mac.h |
@@ -18,6 +18,8 @@ |
#include "ui/gl/scoped_cgl.h" |
namespace content { |
+ |
+class CompositingIOSurfaceShaderPrograms; |
class CompositingIOSurfaceContext |
: public base::RefCounted<CompositingIOSurfaceContext>, |
@@ -44,6 +46,9 @@ |
void PoisonContextAndSharegroup(); |
bool HasBeenPoisoned() const { return poisoned_; } |
+ CompositingIOSurfaceShaderPrograms* shader_program_cache() const { |
+ return shader_program_cache_.get(); |
+ } |
CGLContextObj cgl_context() const { return cgl_context_; } |
int window_number() const { return window_number_; } |
@@ -56,7 +61,8 @@ |
CompositingIOSurfaceContext( |
int window_number, |
base::ScopedTypeRef<CGLContextObj> clg_context_strong, |
- CGLContextObj clg_context); |
+ CGLContextObj clg_context, |
+ scoped_ptr<CompositingIOSurfaceShaderPrograms> shader_program_cache); |
virtual ~CompositingIOSurfaceContext(); |
int window_number_; |
@@ -64,6 +70,7 @@ |
// Weak, backed by |cgl_context_strong_|. |
CGLContextObj cgl_context_; |
+ scoped_ptr<CompositingIOSurfaceShaderPrograms> shader_program_cache_; |
bool poisoned_; |
// The global map from window number and window ordering to |