| Index: cc/resources/resource_provider.h
|
| diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
|
| index b5dccc8f046a71c6a2a33906d745d37727b05ca6..fa37ddd91fdf28b4e34a25c6f89ddcc17e23aed8 100644
|
| --- a/cc/resources/resource_provider.h
|
| +++ b/cc/resources/resource_provider.h
|
| @@ -63,7 +63,6 @@ class CC_EXPORT ResourceProvider {
|
|
|
| void DidLoseOutputSurface() { lost_output_surface_ = true; }
|
|
|
| - WebKit::WebGraphicsContext3D* GraphicsContext3D();
|
| int max_texture_size() const { return max_texture_size_; }
|
| GLenum best_texture_format() const { return best_texture_format_; }
|
| size_t num_resources() const { return resources_.size(); }
|
| @@ -324,11 +323,11 @@ class CC_EXPORT ResourceProvider {
|
| // Indicates if we can currently lock this resource for write.
|
| bool CanLockForWrite(ResourceId id);
|
|
|
| - cc::ContextProvider* offscreen_context_provider() {
|
| + ContextProvider* offscreen_context_provider() {
|
| return offscreen_context_provider_.get();
|
| }
|
| void set_offscreen_context_provider(
|
| - scoped_refptr<cc::ContextProvider> offscreen_context_provider) {
|
| + scoped_refptr<ContextProvider> offscreen_context_provider) {
|
| offscreen_context_provider_ = offscreen_context_provider;
|
| }
|
| static GLint GetActiveTextureUnit(WebKit::WebGraphicsContext3D* context);
|
| @@ -421,6 +420,9 @@ class CC_EXPORT ResourceProvider {
|
| GLenum target,
|
| GLenum unit);
|
|
|
| + // Returns NULL if the output_surface_ does not have a ContextProvider.
|
| + WebKit::WebGraphicsContext3D* Context3d() const;
|
| +
|
| OutputSurface* output_surface_;
|
| bool lost_output_surface_;
|
| int highp_threshold_min_;
|
|
|