~abreu-alexandre/oxide/remove-chromedriver-build

« back to all changes in this revision

Viewing changes to qt/core/browser/oxide_qt_contents_view.cc

  • Committer: Chris Coulson
  • Date: 2016-02-26 18:27:48 UTC
  • Revision ID: chris.coulson@canonical.com-20160226182748-bqhc23qxs09cpg33
Switch to a single-threaded webview compositor

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include "base/logging.h"
31
31
#include "base/memory/ref_counted.h"
 
32
#include "base/memory/ref_counted_memory.h"
32
33
#include "base/memory/scoped_vector.h"
33
34
#include "content/common/cursors/webcursor.h"
34
35
#include "content/public/browser/native_web_keyboard_event.h"
199
200
  QImage GetSoftwareFrame() final {
200
201
    DCHECK_EQ(GetType(), CompositorFrameHandle::TYPE_SOFTWARE);
201
202
    return QImage(
202
 
        static_cast<uchar *>(frame_->data()->software_frame_data->pixels),
 
203
        frame_->data()->software_frame_data->pixels->front(),
203
204
        frame_->data()->size_in_pixels.width(),
204
205
        frame_->data()->size_in_pixels.height(),
205
206
        QImage::Format_ARGB32);