diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 00:56:25 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 00:56:25 +0000 |
commit | d717e03b637b8bd133db3fde5f3108b999a51a88 (patch) | |
tree | aca70991012a49441d24bbd201d894903ba05416 /chrome/plugin/command_buffer_stub.h | |
parent | 5fe524efcaf51b401067d936b5ff331249dc99df (diff) | |
download | chromium_src-d717e03b637b8bd133db3fde5f3108b999a51a88.zip chromium_src-d717e03b637b8bd133db3fde5f3108b999a51a88.tar.gz chromium_src-d717e03b637b8bd133db3fde5f3108b999a51a88.tar.bz2 |
GPU plugin forwards repaint events to Pepper plugin.
WM_PAINT results in a call to Pepper repaint callback.
Implemented WM_ERASEBKGND to prevent flickering on repaint.
Implemented PGL_NO_CONTEXT (copied from EGL spec). This is already reviewed by alokp but unfortunately got entangled with this CL.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/571018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39530 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/command_buffer_stub.h')
-rw-r--r-- | chrome/plugin/command_buffer_stub.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/plugin/command_buffer_stub.h b/chrome/plugin/command_buffer_stub.h index f0d8ac0..f7bd691 100644 --- a/chrome/plugin/command_buffer_stub.h +++ b/chrome/plugin/command_buffer_stub.h @@ -37,6 +37,10 @@ class CommandBufferStub : public IPC::Channel::Listener, int route_id() const { return route_id_; } + // Notify the client that it must repaint due to the window becoming invalid + // or a lost context. + void NotifyRepaint(); + private: // Message handlers: void OnInitialize(int32 size, base::SharedMemoryHandle* ring_buffer); @@ -49,6 +53,13 @@ class CommandBufferStub : public IPC::Channel::Listener, void OnGetTransferBuffer(int32 id, base::SharedMemoryHandle* transfer_buffer, uint32* size); + + // Destroy all owned objects. + void Destroy(); + + bool InitializePlatformSpecific(); + void DestroyPlatformSpecific(); + #if defined(OS_MACOSX) void OnSetWindowSize(int32 width, int32 height); void SwapBuffersCallback(); |