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

Unified Diff: ui/gfx/ozone/surface_ozone_canvas.h

Issue 312393002: ozone: Move the factory interfaces into a common target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r278697 Created 6 years, 6 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/gfx/ozone/surface_factory_ozone.cc ('k') | ui/gfx/ozone/surface_ozone_egl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/surface_ozone_canvas.h
diff --git a/ui/gfx/ozone/surface_ozone_canvas.h b/ui/gfx/ozone/surface_ozone_canvas.h
deleted file mode 100644
index efedf905d33597fd8822cb0cb1027635174e441b..0000000000000000000000000000000000000000
--- a/ui/gfx/ozone/surface_ozone_canvas.h
+++ /dev/null
@@ -1,54 +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_GFX_OZONE_SURFACE_OZONE_CANVAS_H_
-#define UI_GFX_OZONE_SURFACE_OZONE_CANVAS_H_
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "skia/ext/refptr.h"
-#include "ui/gfx/gfx_export.h"
-
-class SkCanvas;
-
-namespace gfx {
-
-class Size;
-class VSyncProvider;
-
-// The platform-specific part of an software output. The class is intended
-// for use when no EGL/GLES2 acceleration is possible.
-// This class owns any bits that the ozone implementation needs freed when
-// the software output is destroyed.
-class GFX_EXPORT SurfaceOzoneCanvas {
- public:
- virtual ~SurfaceOzoneCanvas() {}
-
- // Returns an SkCanvas for drawing on the window.
- virtual skia::RefPtr<SkCanvas> GetCanvas() = 0;
-
- // Attempts to resize the canvas to match the viewport size. After
- // resizing, the compositor must call GetCanvas() to get the next
- // canvas - this invalidates any previous canvas from GetCanvas().
- virtual void ResizeCanvas(const gfx::Size& viewport_size) = 0;
-
- // Present the current canvas. After presenting, the compositor must
- // call GetCanvas() to get the next canvas - this invalidates any
- // previous canvas from GetCanvas().
- //
- // The implementation may assume that any pixels outside the damage
- // rectangle are unchanged since the previous call to PresentCanvas().
- virtual void PresentCanvas(const gfx::Rect& damage) = 0;
-
- // Returns a gfx::VsyncProvider for this surface. Note that this may be
- // called after we have entered the sandbox so if there are operations (e.g.
- // opening a file descriptor providing vsync events) that must be done
- // outside of the sandbox, they must have been completed in
- // InitializeHardware. Returns an empty scoped_ptr on error.
- virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0;
-};
-
-} // namespace gfx
-
-#endif // UI_GFX_OZONE_SURFACE_OZONE_CANVAS_H_
« no previous file with comments | « ui/gfx/ozone/surface_factory_ozone.cc ('k') | ui/gfx/ozone/surface_ozone_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698