| 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 16 matching lines...) Expand all Loading... |
| 27 #include "content/renderer/gpu/compositor_output_surface.h" | 27 #include "content/renderer/gpu/compositor_output_surface.h" |
| 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/render_process.h" | 32 #include "content/renderer/render_process.h" |
| 33 #include "content/renderer/render_thread_impl.h" | 33 #include "content/renderer/render_thread_impl.h" |
| 34 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 34 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 35 #include "ipc/ipc_sync_message.h" | 35 #include "ipc/ipc_sync_message.h" |
| 36 #include "skia/ext/platform_canvas.h" | 36 #include "skia/ext/platform_canvas.h" |
| 37 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 37 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 38 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" | 38 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 39 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 39 #include "third_party/WebKit/public/platform/WebRect.h" |
| 40 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 40 #include "third_party/WebKit/public/platform/WebSize.h" |
| 41 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 41 #include "third_party/WebKit/public/platform/WebString.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h" |
| 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPagePopup.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPagePopup.h" |
| 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" |
| 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" |
| 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" |
| 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 49 #include "third_party/skia/include/core/SkShader.h" | 49 #include "third_party/skia/include/core/SkShader.h" |
| 50 #include "ui/base/ui_base_switches.h" | 50 #include "ui/base/ui_base_switches.h" |
| 51 #include "ui/gfx/point.h" | 51 #include "ui/gfx/point.h" |
| (...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2371 | 2371 |
| 2372 if (!context->Initialize( | 2372 if (!context->Initialize( |
| 2373 attributes, | 2373 attributes, |
| 2374 false /* bind generates resources */, | 2374 false /* bind generates resources */, |
| 2375 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) | 2375 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) |
| 2376 return NULL; | 2376 return NULL; |
| 2377 return context.release(); | 2377 return context.release(); |
| 2378 } | 2378 } |
| 2379 | 2379 |
| 2380 } // namespace content | 2380 } // namespace content |
| OLD | NEW |