summaryrefslogtreecommitdiff
path: root/glworker.h
diff options
context:
space:
mode:
authorZach Reizner <zachr@google.com>2015-09-10 18:30:54 -0700
committerZach Reizner <zachr@google.com>2015-09-25 13:52:22 -0700
commit4a253659cef3d82bfb0b25b3ff4c7b073d7a0460 (patch)
tree65affd74723b165eaf0431a54a95275b92e1c161 /glworker.h
parent176d9464c7ca1004f8e2b994267ac0d07fd7237e (diff)
drm_hwcomposer: implement the safe handling of layers
This is a sweeping change to discard our usage of struct hwc_layer_t outside hwcomposer.cpp. That was a dangerous struct that was a source of many of our errors. Replacing it with safer RAII-style classes reduces the amount and complexity of our code. Change-Id: I580cafdf89bd1e7e6583f3073858b8e78e6018ba
Diffstat (limited to 'glworker.h')
-rw-r--r--glworker.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/glworker.h b/glworker.h
index ce41444..b3163ce 100644
--- a/glworker.h
+++ b/glworker.h
@@ -33,13 +33,15 @@
namespace android {
+struct DrmCompositionLayer;
+
class GLWorkerCompositor {
public:
GLWorkerCompositor();
~GLWorkerCompositor();
int Init();
- int Composite(hwc_layer_1 *layers, size_t num_layers,
+ int Composite(DrmCompositionLayer *layers, size_t num_layers,
const sp<GraphicBuffer> &framebuffer);
void Finish();