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

Unified Diff: ui/ozone/platform/dri/dri_surface.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_gpu_platform_support_host.cc ('k') | ui/ozone/platform/dri/dri_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_surface.h
diff --git a/ui/ozone/platform/dri/dri_surface.h b/ui/ozone/platform/dri/dri_surface.h
deleted file mode 100644
index d3b78071a41fda3ec89aade361bdf2af61c86f07..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/dri_surface.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_SURFACE_H_
-#define UI_OZONE_PLATFORM_DRI_DRI_SURFACE_H_
-
-#include "base/memory/ref_counted.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/gfx/skia_util.h"
-#include "ui/ozone/public/surface_ozone_canvas.h"
-
-class SkCanvas;
-class SkSurface;
-
-namespace ui {
-
-class DriBuffer;
-class DriWindowDelegate;
-class DriWrapper;
-class HardwareDisplayController;
-
-class DriSurface : public SurfaceOzoneCanvas {
- public:
- DriSurface(DriWindowDelegate* window_delegate, DriWrapper* dri);
- virtual ~DriSurface();
-
- // SurfaceOzoneCanvas:
- virtual skia::RefPtr<SkCanvas> GetCanvas() override;
- virtual void ResizeCanvas(const gfx::Size& viewport_size) override;
- virtual void PresentCanvas(const gfx::Rect& damage) override;
- virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override;
-
- private:
- void UpdateNativeSurface(const gfx::Rect& damage);
-
- DriWindowDelegate* window_delegate_;
-
- // Stores the connection to the graphics card. Pointer not owned by this
- // class.
- DriWrapper* dri_;
-
- // The actual buffers used for painting.
- scoped_refptr<DriBuffer> buffers_[2];
-
- // Keeps track of which bitmap is |buffers_| is the frontbuffer.
- int front_buffer_;
-
- skia::RefPtr<SkSurface> surface_;
- gfx::Rect last_damage_;
-
- DISALLOW_COPY_AND_ASSIGN(DriSurface);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_gpu_platform_support_host.cc ('k') | ui/ozone/platform/dri/dri_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698