Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: content/renderer/render_widget.cc

Issue 101223005: Plumbing explicit share groups through context creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Large rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698