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

Unified Diff: ui/gfx/ozone/impl/dri_skbitmap.h

Issue 62953003: Support removal of DRI platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix use_ozone=0 Created 7 years, 1 month 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 | « ui/gfx/ozone/dri/hardware_display_controller_unittest.cc ('k') | ui/gfx/ozone/impl/dri_skbitmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/impl/dri_skbitmap.h
diff --git a/ui/gfx/ozone/impl/dri_skbitmap.h b/ui/gfx/ozone/impl/dri_skbitmap.h
deleted file mode 100644
index 5e43d8905781ad453b80169bbcaa62166f692711..0000000000000000000000000000000000000000
--- a/ui/gfx/ozone/impl/dri_skbitmap.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2013 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_GFX_OZONE_IMPL_DRI_SKBITMAP_H_
-#define UI_GFX_OZONE_IMPL_DRI_SKBITMAP_H_
-
-#include "base/basictypes.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-
-namespace gfx {
-
-// Extend the SkBitmap interface to keep track of additional parameters used by
-// the DRM stack when allocating buffers.
-class DriSkBitmap : public SkBitmap {
- public:
- DriSkBitmap(int fd);
- virtual ~DriSkBitmap();
-
- // Allocates the backing pixels using DRI.
- // Return true on success, false otherwise.
- virtual bool Initialize();
-
- uint32_t get_handle() const { return handle_; };
-
- uint32_t get_framebuffer() const { return framebuffer_; };
-
- int get_fd() const { return fd_; };
-
- // Return the color depth of a pixel in this buffer.
- uint8_t GetColorDepth() const;
-
- private:
- friend class DriAllocator;
- friend class HardwareDisplayController;
-
- void set_handle(uint32_t handle) { handle_ = handle; };
- void set_framebuffer(uint32_t framebuffer) { framebuffer_ = framebuffer; };
-
- // File descriptor used by the DRI allocator to request buffers from the DRI
- // stack.
- int fd_;
-
- // Buffer handle used by the DRI allocator.
- uint32_t handle_;
-
- // Buffer ID used by the DRI modesettings API. This is set when the buffer is
- // registered with the CRTC.
- uint32_t framebuffer_;
-
- DISALLOW_COPY_AND_ASSIGN(DriSkBitmap);
-};
-
-} // namespace gfx
-
-#endif // UI_GFX_OZONE_IMPL_DRI_SKBITMAP_H_
« no previous file with comments | « ui/gfx/ozone/dri/hardware_display_controller_unittest.cc ('k') | ui/gfx/ozone/impl/dri_skbitmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698