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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 | « ui/ozone/platform/dri/dri_buffer.cc ('k') | ui/ozone/platform/dri/dri_console_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_console_buffer.h
diff --git a/ui/ozone/platform/dri/dri_console_buffer.h b/ui/ozone/platform/dri/dri_console_buffer.h
deleted file mode 100644
index 51cb4adb331e4685eb9533a0c7fbf3edce89da30..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/dri_console_buffer.h
+++ /dev/null
@@ -1,58 +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_DRI_CONSOLE_BUFFER_H_
-#define UI_OZONE_PLATFORM_DRI_DRI_CONSOLE_BUFFER_H_
-
-#include "base/macros.h"
-#include "skia/ext/refptr.h"
-#include "third_party/skia/include/core/SkSurface.h"
-
-class SkCanvas;
-
-namespace ui {
-
-class DriWrapper;
-
-// Wrapper for the console buffer. This is the buffer that is allocated by
-// default by the system and is used when no application is controlling the
-// CRTC. Keeps track of the native properties of the buffer and wraps the pixel
-// memory into a SkSurface which can be used to draw into using Skia.
-class DriConsoleBuffer {
- public:
- DriConsoleBuffer(DriWrapper* dri, uint32_t framebuffer);
- ~DriConsoleBuffer();
-
- SkCanvas* canvas() { return surface_->getCanvas(); }
-
- // Memory map the backing pixels and wrap them in |surface_|.
- bool Initialize();
-
- protected:
- DriWrapper* dri_; // Not owned.
-
- // Wrapper around the native pixel memory.
- skia::RefPtr<SkSurface> surface_;
-
- // Length of a row of pixels.
- uint32_t stride_;
-
- // Buffer handle used by the DRM allocator.
- uint32_t handle_;
-
- // Buffer ID used by the DRM modesettings API.
- uint32_t framebuffer_;
-
- // Memory map base address.
- void* mmap_base_;
-
- // Memory map size.
- size_t mmap_size_;
-
- DISALLOW_COPY_AND_ASSIGN(DriConsoleBuffer);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_DRI_CONSOLE_BUFFER_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_buffer.cc ('k') | ui/ozone/platform/dri/dri_console_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698