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

Side by Side Diff: content/renderer/pepper/ppb_graphics_3d_impl.cc

Issue 357203003: Move webpreferences.* from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderView::FromWebView Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/pepper/ppb_graphics_3d_impl.h" 5 #include "content/renderer/pepper/ppb_graphics_3d_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "content/common/gpu/client/command_buffer_proxy_impl.h" 11 #include "content/common/gpu/client/command_buffer_proxy_impl.h"
12 #include "content/common/gpu/client/gpu_channel_host.h" 12 #include "content/common/gpu/client/gpu_channel_host.h"
13 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
14 #include "content/public/common/web_preferences.h"
14 #include "content/renderer/pepper/host_globals.h" 15 #include "content/renderer/pepper/host_globals.h"
15 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 16 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
16 #include "content/renderer/pepper/plugin_module.h" 17 #include "content/renderer/pepper/plugin_module.h"
17 #include "content/renderer/render_thread_impl.h" 18 #include "content/renderer/render_thread_impl.h"
18 #include "content/renderer/render_view_impl.h" 19 #include "content/renderer/render_view_impl.h"
19 #include "gpu/command_buffer/client/gles2_implementation.h" 20 #include "gpu/command_buffer/client/gles2_implementation.h"
20 #include "ppapi/c/ppp_graphics_3d.h" 21 #include "ppapi/c/ppp_graphics_3d.h"
21 #include "ppapi/thunk/enter.h" 22 #include "ppapi/thunk/enter.h"
22 #include "third_party/WebKit/public/platform/WebString.h" 23 #include "third_party/WebKit/public/platform/WebString.h"
23 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 24 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
24 #include "third_party/WebKit/public/web/WebDocument.h" 25 #include "third_party/WebKit/public/web/WebDocument.h"
25 #include "third_party/WebKit/public/web/WebElement.h" 26 #include "third_party/WebKit/public/web/WebElement.h"
26 #include "third_party/WebKit/public/web/WebLocalFrame.h" 27 #include "third_party/WebKit/public/web/WebLocalFrame.h"
27 #include "third_party/WebKit/public/web/WebPluginContainer.h" 28 #include "third_party/WebKit/public/web/WebPluginContainer.h"
28 #include "webkit/common/webpreferences.h"
29 29
30 using ppapi::thunk::EnterResourceNoLock; 30 using ppapi::thunk::EnterResourceNoLock;
31 using ppapi::thunk::PPB_Graphics3D_API; 31 using ppapi::thunk::PPB_Graphics3D_API;
32 using blink::WebConsoleMessage; 32 using blink::WebConsoleMessage;
33 using blink::WebLocalFrame; 33 using blink::WebLocalFrame;
34 using blink::WebPluginContainer; 34 using blink::WebPluginContainer;
35 using blink::WebString; 35 using blink::WebString;
36 36
37 namespace content { 37 namespace content {
38 38
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 instance->module()->GetPluginInterface(PPP_GRAPHICS_3D_INTERFACE)); 360 instance->module()->GetPluginInterface(PPP_GRAPHICS_3D_INTERFACE));
361 // We have to check *again* that the instance exists, because it could have 361 // We have to check *again* that the instance exists, because it could have
362 // been deleted during GetPluginInterface(). Even the PluginModule could be 362 // been deleted during GetPluginInterface(). Even the PluginModule could be
363 // deleted, but in that case, the instance should also be gone, so the 363 // deleted, but in that case, the instance should also be gone, so the
364 // GetInstance check covers both cases. 364 // GetInstance check covers both cases.
365 if (ppp_graphics_3d && HostGlobals::Get()->GetInstance(this_pp_instance)) 365 if (ppp_graphics_3d && HostGlobals::Get()->GetInstance(this_pp_instance))
366 ppp_graphics_3d->Graphics3DContextLost(this_pp_instance); 366 ppp_graphics_3d->Graphics3DContextLost(this_pp_instance);
367 } 367 }
368 368
369 } // namespace content 369 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698