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

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

Issue 511423002: Use GpuBrowserCompositorOutputSurface with Surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/browser/compositor/onscreen_display_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/onscreen_display_client.cc
diff --git a/content/browser/compositor/onscreen_display_client.cc b/content/browser/compositor/onscreen_display_client.cc
index 7c349b056c22ff76d3f8f3715e3309c26e1117fa..da60316490f034c0e8f530e1a0b713dcca816173 100644
--- a/content/browser/compositor/onscreen_display_client.cc
+++ b/content/browser/compositor/onscreen_display_client.cc
@@ -13,12 +13,10 @@
namespace content {
OnscreenDisplayClient::OnscreenDisplayClient(
- const scoped_refptr<cc::ContextProvider>& onscreen_context_provider,
- scoped_ptr<cc::OutputSurface> software_surface,
+ scoped_ptr<cc::OutputSurface> output_surface,
cc::SurfaceManager* manager,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
- : onscreen_context_provider_(onscreen_context_provider),
- software_surface_(software_surface.Pass()),
+ : output_surface_(output_surface.Pass()),
display_(
new cc::Display(this, manager, HostSharedBitmapManager::current())),
task_runner_(task_runner),
@@ -30,10 +28,8 @@ OnscreenDisplayClient::~OnscreenDisplayClient() {
}
scoped_ptr<cc::OutputSurface> OnscreenDisplayClient::CreateOutputSurface() {
- if (!onscreen_context_provider_.get())
- return software_surface_.Pass();
- return make_scoped_ptr(new cc::OutputSurface(onscreen_context_provider_))
- .Pass();
+ DCHECK(output_surface_.get());
+ return output_surface_.Pass();
}
void OnscreenDisplayClient::DisplayDamaged() {
« no previous file with comments | « content/browser/compositor/onscreen_display_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698