~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to src/platforms/android/server/buffer.h

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
ImportĀ upstreamĀ versionĀ 0.13.0+15.10.20150512

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    geometry::Stride stride() const override;
55
55
    MirPixelFormat pixel_format() const override;
56
56
    void gl_bind_to_texture() override;
57
 
    bool can_bypass() const override;
58
 
 
59
57
    //note, you will get the native representation of an android buffer, including
60
58
    //the fences associated with the buffer. You must close these fences
61
59
    std::shared_ptr<NativeBuffer> native_buffer_handle() const override;
62
60
 
63
61
    void write(unsigned char const* pixels, size_t size) override;
 
62
    void read(std::function<void(unsigned char const*)> const&) override;
64
63
 
65
64
private:
66
65
    gralloc_module_t const* hw_module;