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

Unified Diff: content/renderer/gpu/delegated_compositor_output_surface.cc

Issue 20185002: ContextProvider in OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: contextprovider: don't access Context3d() in OutputSurface contructors, it's not bound yet Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/gpu/delegated_compositor_output_surface.cc
diff --git a/content/renderer/gpu/delegated_compositor_output_surface.cc b/content/renderer/gpu/delegated_compositor_output_surface.cc
index 2e53923de14820b7527617260789f72daa20feae..02ad1587accafd7006483ec36d3d7383cd3eed7e 100644
--- a/content/renderer/gpu/delegated_compositor_output_surface.cc
+++ b/content/renderer/gpu/delegated_compositor_output_surface.cc
@@ -9,12 +9,12 @@ namespace content {
DelegatedCompositorOutputSurface::DelegatedCompositorOutputSurface(
int32 routing_id,
uint32 output_surface_id,
- WebGraphicsContext3DCommandBufferImpl* context3d,
- cc::SoftwareOutputDevice* software)
+ const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
+ scoped_ptr<cc::SoftwareOutputDevice> software)
: CompositorOutputSurface(routing_id,
output_surface_id,
- context3d,
- software,
+ context_provider,
+ software.Pass(),
true) {
capabilities_.delegated_rendering = true;
capabilities_.max_frames_pending = 1;
« no previous file with comments | « content/renderer/gpu/delegated_compositor_output_surface.h ('k') | content/renderer/gpu/mailbox_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698