| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index 65939995bc45f598766a973b195e947bae9b5e9c..9f617a19f9962eaaa997fa65544ab624f3af1eda 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -52,6 +52,7 @@
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/context_menu_params.h"
|
| #include "content/public/common/file_chooser_params.h"
|
| +#include "content/public/common/three_d_api_types.h"
|
| #include "content/public/common/url_constants.h"
|
| #include "content/public/renderer/content_renderer_client.h"
|
| #include "content/public/renderer/context_menu_client.h"
|
| @@ -4252,6 +4253,28 @@ WebKit::WebString RenderViewImpl::userAgentOverride(
|
| return WebKit::WebString();
|
| }
|
|
|
| +bool RenderViewImpl::allowWebGL(WebFrame* frame, bool default_value) {
|
| + if (!default_value)
|
| + return false;
|
| +
|
| + bool blocked = true;
|
| + Send(new ViewHostMsg_Are3DAPIsBlocked(
|
| + routing_id_,
|
| + GURL(frame->top()->document().securityOrigin().toString()),
|
| + THREE_D_API_TYPE_WEBGL,
|
| + &blocked));
|
| + return !blocked;
|
| +}
|
| +
|
| +void RenderViewImpl::didLoseWebGLContext(
|
| + WebKit::WebFrame* frame,
|
| + int arb_robustness_status_code) {
|
| + Send(new ViewHostMsg_DidLose3DContext(
|
| + GURL(frame->top()->document().securityOrigin().toString()),
|
| + THREE_D_API_TYPE_WEBGL,
|
| + arb_robustness_status_code));
|
| +}
|
| +
|
| // WebKit::WebPageSerializerClient implementation ------------------------------
|
|
|
| void RenderViewImpl::didSerializeDataForFrame(
|
|
|