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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 888783002: Composite to cc::Display from ui::InProcessContextFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/compositor/onscreen_display_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index c7c867e6001ea62b0ae91752c2b9e3171a601b98..cc42565273a8f82431f9ef3bea6fcbc3f7b72965 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -14,15 +14,15 @@
#include "base/threading/thread.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/output_surface.h"
+#include "cc/surfaces/onscreen_display_client.h"
+#include "cc/surfaces/surface_display_output_surface.h"
#include "cc/surfaces/surface_manager.h"
#include "content/browser/compositor/browser_compositor_output_surface.h"
#include "content/browser/compositor/browser_compositor_output_surface_proxy.h"
#include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
#include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h"
-#include "content/browser/compositor/onscreen_display_client.h"
#include "content/browser/compositor/reflector_impl.h"
#include "content/browser/compositor/software_browser_compositor_output_surface.h"
-#include "content/browser/compositor/surface_display_output_surface.h"
#include "content/browser/gpu/browser_gpu_channel_host_factory.h"
#include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
#include "content/browser/gpu/compositor_util.h"
@@ -66,7 +66,7 @@ namespace content {
struct GpuProcessTransportFactory::PerCompositorData {
int surface_id;
scoped_refptr<ReflectorImpl> reflector;
- scoped_ptr<OnscreenDisplayClient> display_client;
+ scoped_ptr<cc::OnscreenDisplayClient> display_client;
};
GpuProcessTransportFactory::GpuProcessTransportFactory()
@@ -229,12 +229,14 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
compositor->vsync_manager(),
CreateOverlayCandidateValidator(compositor->widget())));
}
- scoped_ptr<OnscreenDisplayClient> display_client(new OnscreenDisplayClient(
- display_surface.Pass(), manager, compositor->GetRendererSettings(),
- compositor->task_runner()));
-
- scoped_ptr<SurfaceDisplayOutputSurface> output_surface(
- new SurfaceDisplayOutputSurface(
+ scoped_ptr<cc::OnscreenDisplayClient> display_client(
+ new cc::OnscreenDisplayClient(
+ display_surface.Pass(), manager, HostSharedBitmapManager::current(),
+ BrowserGpuMemoryBufferManager::current(),
+ compositor->GetRendererSettings(), compositor->task_runner()));
+
+ scoped_ptr<cc::SurfaceDisplayOutputSurface> output_surface(
+ new cc::SurfaceDisplayOutputSurface(
manager, compositor->surface_id_allocator(), context_provider));
display_client->set_surface_output_surface(output_surface.get());
output_surface->set_display_client(display_client.get());
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/compositor/onscreen_display_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698