Bug 858914 - New texture classes + OGL backend (preffed off). r=bas, nrc
[gecko.git] / gfx / layers / ipc / CompositableTransactionParent.h
blobaa3807a3b856a726b2b195aacb3644271088af65
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=8 et :
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "mozilla/layers/ISurfaceAllocator.h"
9 #include "mozilla/layers/LayerTransaction.h"
11 namespace mozilla {
12 namespace layers {
14 typedef std::vector<mozilla::layers::EditReply> EditReplyVector;
16 // Since PCompositble has two potential manager protocols, we can't just call
17 // the Manager() method usually generated when there's one manager protocol,
18 // so both manager protocols implement this and we keep a reference to them
19 // through this interface.
20 class CompositableParentManager : public ISurfaceAllocator
22 protected:
23 /**
24 * Handle the IPDL messages that affect PCompositable actors.
26 bool ReceiveCompositableUpdate(const CompositableOperation& aEdit,
27 EditReplyVector& replyv);
28 bool IsOnCompositorSide() const MOZ_OVERRIDE { return true; }
34 } // namespace
35 } // namespace