OLD | NEW |
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/render_widget.h" | 5 #include "content/renderer/render_widget.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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/renderer/gpu/compositor_software_output_device.h" | 28 #include "content/renderer/gpu/compositor_software_output_device.h" |
29 #include "content/renderer/gpu/input_handler_manager.h" | 29 #include "content/renderer/gpu/input_handler_manager.h" |
30 #include "content/renderer/gpu/mailbox_output_surface.h" | 30 #include "content/renderer/gpu/mailbox_output_surface.h" |
31 #include "content/renderer/gpu/render_widget_compositor.h" | 31 #include "content/renderer/gpu/render_widget_compositor.h" |
32 #include "content/renderer/ime_event_guard.h" | 32 #include "content/renderer/ime_event_guard.h" |
33 #include "content/renderer/render_process.h" | 33 #include "content/renderer/render_process.h" |
34 #include "content/renderer/render_thread_impl.h" | 34 #include "content/renderer/render_thread_impl.h" |
35 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 35 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
36 #include "ipc/ipc_sync_message.h" | 36 #include "ipc/ipc_sync_message.h" |
37 #include "skia/ext/platform_canvas.h" | 37 #include "skia/ext/platform_canvas.h" |
38 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 38 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
39 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" | 39 #include "third_party/WebKit/public/platform/WebPoint.h" |
40 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 40 #include "third_party/WebKit/public/platform/WebRect.h" |
41 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 41 #include "third_party/WebKit/public/platform/WebSize.h" |
42 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 42 #include "third_party/WebKit/public/platform/WebString.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPagePopup.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPagePopup.h" |
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" |
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" |
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" |
49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
50 #include "third_party/skia/include/core/SkShader.h" | 50 #include "third_party/skia/include/core/SkShader.h" |
51 #include "ui/base/ui_base_switches.h" | 51 #include "ui/base/ui_base_switches.h" |
52 #include "ui/gfx/point.h" | 52 #include "ui/gfx/point.h" |
(...skipping 2328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2381 | 2381 |
2382 if (!context->Initialize( | 2382 if (!context->Initialize( |
2383 attributes, | 2383 attributes, |
2384 false /* bind generates resources */, | 2384 false /* bind generates resources */, |
2385 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) | 2385 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) |
2386 return NULL; | 2386 return NULL; |
2387 return context.release(); | 2387 return context.release(); |
2388 } | 2388 } |
2389 | 2389 |
2390 } // namespace content | 2390 } // namespace content |
OLD | NEW |