| 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 2851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2862 max_transfer_buffer_usage_mb * kBytesPerMegabyte; | 2862 max_transfer_buffer_usage_mb * kBytesPerMegabyte; |
| 2863 #endif | 2863 #endif |
| 2864 | 2864 |
| 2865 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context( | 2865 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context( |
| 2866 new WebGraphicsContext3DCommandBufferImpl( | 2866 new WebGraphicsContext3DCommandBufferImpl( |
| 2867 surface_id(), | 2867 surface_id(), |
| 2868 GetURLForGraphicsContext3D(), | 2868 GetURLForGraphicsContext3D(), |
| 2869 gpu_channel_host.get(), | 2869 gpu_channel_host.get(), |
| 2870 attributes, | 2870 attributes, |
| 2871 false /* bind generates resources */, | 2871 false /* bind generates resources */, |
| 2872 limits)); | 2872 limits, |
| 2873 NULL)); |
| 2873 return context.Pass(); | 2874 return context.Pass(); |
| 2874 } | 2875 } |
| 2875 | 2876 |
| 2876 } // namespace content | 2877 } // namespace content |
| OLD | NEW |