summaryrefslogtreecommitdiffstats
path: root/components/pdf_viewer
diff options
context:
space:
mode:
authorsky <sky@chromium.org>2015-11-03 11:45:12 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-03 19:46:10 +0000
commit5a1bb9a110ca9fbe4adc892adddb896505442f6c (patch)
tree2d1464871a1601b289f1d520d5d719ad66eead2f /components/pdf_viewer
parent4f7dce6051d69aa50e6800b456b0a8082bea4f5b (diff)
downloadchromium_src-5a1bb9a110ca9fbe4adc892adddb896505442f6c.zip
chromium_src-5a1bb9a110ca9fbe4adc892adddb896505442f6c.tar.gz
chromium_src-5a1bb9a110ca9fbe4adc892adddb896505442f6c.tar.bz2
Adds support for an additional surface on each Window
The UNDERLAY surface is painted underneath the default one and is intended to be used for drawing frame decorations in the wm. I'm assuming we won't need nested surface references for UNDERLAY like we have for the current surfaces. BUG=548420 TEST=none R=fsamuel@chromium.org Review URL: https://codereview.chromium.org/1430883002 Cr-Commit-Position: refs/heads/master@{#357574}
Diffstat (limited to 'components/pdf_viewer')
-rw-r--r--components/pdf_viewer/pdf_viewer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/pdf_viewer/pdf_viewer.cc b/components/pdf_viewer/pdf_viewer.cc
index 0934fab..beae796 100644
--- a/components/pdf_viewer/pdf_viewer.cc
+++ b/components/pdf_viewer/pdf_viewer.cc
@@ -75,7 +75,7 @@ class BitmapUploader : public mus::mojom::SurfaceClient {
}
void Init(mojo::Shell* shell) {
- surface_ = view_->RequestSurface();
+ surface_ = view_->RequestSurface(mus::mojom::SURFACE_TYPE_DEFAULT);
surface_->BindToThread();
mojo::ServiceProviderPtr gpu_service_provider;