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

Unified Diff: remoting/client/x11_view.cc

Issue 3064009: Initial scriptable object implementation. (Closed)
Patch Set: Fix alpha's style nits. Created 10 years, 5 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 | « remoting/client/plugin/pepper_view.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/x11_view.cc
diff --git a/remoting/client/x11_view.cc b/remoting/client/x11_view.cc
index fe30291d01e6d14a36c98f4b0f3cb740b34b40ac..ef3116b69718f407badb0885be963680c0b77bc0 100644
--- a/remoting/client/x11_view.cc
+++ b/remoting/client/x11_view.cc
@@ -73,7 +73,7 @@ void X11View::TearDown() {
void X11View::Paint() {
// Don't bother attempting to paint if the display hasn't been set up.
- if (!display_ || !window_ || !height_ || !width_) {
+ if (!display_ || !window_ || !height_ || !width_ || !frame_) {
return;
}
@@ -146,6 +146,8 @@ void X11View::SetHostScreenSize(int width, int height) {
width_ = width;
height_ = height;
XResizeWindow(display_, window_, width_, height_);
+ media::VideoFrame::CreateFrame(media::VideoFrame::RGB32, width_, height_,
+ base::TimeDelta(), base::TimeDelta(), &frame_);
}
void X11View::InitPaintTarget() {
« no previous file with comments | « remoting/client/plugin/pepper_view.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698