Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: ui/ozone/platform/dri/buffer_data.h

Issue 400283002: [Ozone-GBM] Migrate GBM buffers to use the ScanoutBuffer interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/dri/buffer_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/buffer_data.h
diff --git a/ui/ozone/platform/dri/buffer_data.h b/ui/ozone/platform/dri/buffer_data.h
deleted file mode 100644
index 2f3422d38bc678db9362a01bbf192865bc09a872..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/buffer_data.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_OZONE_PLATFORM_DRI_BUFFER_DATA_H_
-#define UI_OZONE_PLATFORM_DRI_BUFFER_DATA_H_
-
-#include "base/memory/scoped_ptr.h"
-
-struct gbm_bo;
-
-namespace ui {
-
-class DriWrapper;
-
-// This class is used to tag a gbm buffer with custom information needed
-// for presentation with the surface factory.
-class BufferData {
- public:
- // When we create the BufferData we need to register the buffer. Once
- // successfully registered, the |framebuffer_| field will hold the ID of the
- // buffer. The controller will use this ID when scanning out the buffer. On
- // creation we will also associate the BufferData with the buffer.
- static BufferData* CreateData(DriWrapper* dri, gbm_bo* buffer);
-
- // Callback used by GBM to destroy the BufferData associated with a buffer.
- static void Destroy(gbm_bo* buffer, void* data);
-
- // Returns the BufferData associated with |buffer|. NULL if no data is
- // associated.
- static BufferData* GetData(gbm_bo* buffer);
-
- uint32_t framebuffer() const { return framebuffer_; }
- uint32_t handle() const { return handle_; }
-
- private:
- BufferData(DriWrapper* dri, gbm_bo* buffer);
- ~BufferData();
-
- DriWrapper* dri_;
-
- uint32_t handle_;
-
- // ID provided by the controller when the buffer is registered. This ID is
- // used when scanning out the buffer.
- uint32_t framebuffer_;
-
- DISALLOW_COPY_AND_ASSIGN(BufferData);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_BUFFER_DATA_H_
« no previous file with comments | « no previous file | ui/ozone/platform/dri/buffer_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698