| 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 2844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2855 max_transfer_buffer_usage_mb * kBytesPerMegabyte; | 2855 max_transfer_buffer_usage_mb * kBytesPerMegabyte; |
| 2856 #endif | 2856 #endif |
| 2857 | 2857 |
| 2858 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context( | 2858 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context( |
| 2859 new WebGraphicsContext3DCommandBufferImpl( | 2859 new WebGraphicsContext3DCommandBufferImpl( |
| 2860 surface_id(), | 2860 surface_id(), |
| 2861 GetURLForGraphicsContext3D(), | 2861 GetURLForGraphicsContext3D(), |
| 2862 gpu_channel_host.get(), | 2862 gpu_channel_host.get(), |
| 2863 attributes, | 2863 attributes, |
| 2864 false /* bind generates resources */, | 2864 false /* bind generates resources */, |
| 2865 limits)); | 2865 limits, |
| 2866 NULL)); |
| 2866 return context.Pass(); | 2867 return context.Pass(); |
| 2867 } | 2868 } |
| 2868 | 2869 |
| 2869 } // namespace content | 2870 } // namespace content |
| OLD | NEW |