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

Unified Diff: cc/resources/resource_provider.h

Issue 20185002: ContextProvider in OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: contextprovider: don't access Context3d() in OutputSurface contructors, it's not bound yet Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/raster_worker_pool_unittest.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « cc/resources/raster_worker_pool_unittest.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698