| Index: webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
|
| diff --git a/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc b/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
|
| index 8e4db549136a25365f65866ab70ec4d81cd5e791..600a02b40d7d390f05d1714bfbe2b2a18707db81 100644
|
| --- a/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
|
| +++ b/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
|
| @@ -11,6 +11,7 @@
|
| #include "third_party/WebKit/public/platform/WebExternalTextureLayerClient.h"
|
| #include "third_party/WebKit/public/platform/WebExternalTextureMailbox.h"
|
| #include "third_party/WebKit/public/platform/WebFloatRect.h"
|
| +#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
|
| #include "third_party/WebKit/public/platform/WebSize.h"
|
| #include "webkit/renderer/compositor_bindings/web_external_bitmap_impl.h"
|
| #include "webkit/renderer/compositor_bindings/web_layer_impl.h"
|
| @@ -65,9 +66,14 @@ unsigned WebExternalTextureLayerImpl::PrepareTexture() {
|
| return 0;
|
| }
|
|
|
| -WebKit::WebGraphicsContext3D* WebExternalTextureLayerImpl::Context3d() {
|
| +bool WebExternalTextureLayerImpl::IsContextLost() {
|
| DCHECK(client_);
|
| - return client_->context();
|
| + return client_->context()->isContextLost();
|
| +}
|
| +
|
| +void WebExternalTextureLayerImpl::RateLimitContext() {
|
| + DCHECK(client_);
|
| + client_->context()->rateLimitOffscreenContextCHROMIUM();
|
| }
|
|
|
| bool WebExternalTextureLayerImpl::PrepareTextureMailbox(
|
|
|