| 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/debug/trace_event_synthetic_delay.h" | 10 #include "base/debug/trace_event_synthetic_delay.h" |
| (...skipping 2763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2774 max_transfer_buffer_usage_mb * kBytesPerMegabyte; | 2774 max_transfer_buffer_usage_mb * kBytesPerMegabyte; |
| 2775 #endif | 2775 #endif |
| 2776 | 2776 |
| 2777 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context( | 2777 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context( |
| 2778 new WebGraphicsContext3DCommandBufferImpl( | 2778 new WebGraphicsContext3DCommandBufferImpl( |
| 2779 surface_id(), | 2779 surface_id(), |
| 2780 GetURLForGraphicsContext3D(), | 2780 GetURLForGraphicsContext3D(), |
| 2781 gpu_channel_host.get(), | 2781 gpu_channel_host.get(), |
| 2782 attributes, | 2782 attributes, |
| 2783 false /* bind generates resources */, | 2783 false /* bind generates resources */, |
| 2784 limits)); | 2784 limits, |
| 2785 NULL)); |
| 2785 return context.Pass(); | 2786 return context.Pass(); |
| 2786 } | 2787 } |
| 2787 | 2788 |
| 2788 void RenderWidget::RegisterSwappedOutChildFrame(RenderFrameImpl* frame) { | 2789 void RenderWidget::RegisterSwappedOutChildFrame(RenderFrameImpl* frame) { |
| 2789 swapped_out_frames_.AddObserver(frame); | 2790 swapped_out_frames_.AddObserver(frame); |
| 2790 } | 2791 } |
| 2791 | 2792 |
| 2792 void RenderWidget::UnregisterSwappedOutChildFrame(RenderFrameImpl* frame) { | 2793 void RenderWidget::UnregisterSwappedOutChildFrame(RenderFrameImpl* frame) { |
| 2793 swapped_out_frames_.RemoveObserver(frame); | 2794 swapped_out_frames_.RemoveObserver(frame); |
| 2794 } | 2795 } |
| 2795 | 2796 |
| 2796 } // namespace content | 2797 } // namespace content |
| OLD | NEW |