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

Unified Diff: ui/gfx/ozone/overlay_candidates_ozone.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/impl/file_surface_factory.cc ('k') | ui/gfx/ozone/overlay_candidates_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/overlay_candidates_ozone.h
diff --git a/ui/gfx/ozone/overlay_candidates_ozone.h b/ui/gfx/ozone/overlay_candidates_ozone.h
deleted file mode 100644
index da8a4bbb6fb8b54f84d1e65e20d38635766f1d2f..0000000000000000000000000000000000000000
--- a/ui/gfx/ozone/overlay_candidates_ozone.h
+++ /dev/null
@@ -1,56 +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_OVERLAY_CANDIDATES_OZONE_H_
-#define UI_GFX_OZONE_OVERLAY_CANDIDATES_OZONE_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "ui/gfx/gfx_export.h"
-#include "ui/gfx/ozone/surface_factory_ozone.h"
-#include "ui/gfx/rect_f.h"
-
-namespace gfx {
-
-// This class can be used to answer questions about possible overlay
-// configurations for a particular output device. We get an instance of this
-// class from SurfaceFactoryOzone given an AcceleratedWidget.
-class GFX_EXPORT OverlayCandidatesOzone {
- public:
- struct OverlaySurfaceCandidate {
- OverlaySurfaceCandidate();
- ~OverlaySurfaceCandidate();
-
- // Transformation to apply to layer during composition.
- gfx::OverlayTransform transform;
- // Format of the buffer to composite.
- SurfaceFactoryOzone::BufferFormat format;
- // Rect on the display to position the overlay to.
- gfx::Rect display_rect;
- // Crop within the buffer to be placed inside |display_rect|.
- gfx::RectF crop_rect;
- // Stacking order of the overlay plane relative to the main surface,
- // which is 0. Signed to allow for "underlays".
- int plane_z_order;
-
- // To be modified by the implementer if this candidate can go into
- // an overlay.
- bool overlay_handled;
- };
-
- typedef std::vector<OverlaySurfaceCandidate> OverlaySurfaceCandidateList;
-
- // A list of possible overlay candidates is presented to this function.
- // The expected result is that those candidates that can be in a separate
- // plane are marked with |overlay_handled| set to true, otherwise they are
- // to be tranditionally composited.
- virtual void CheckOverlaySupport(OverlaySurfaceCandidateList* surfaces);
-
- virtual ~OverlayCandidatesOzone();
-};
-
-} // namespace gfx
-
-#endif // UI_GFX_OZONE_OVERLAY_CANDIDATES_OZONE_H_
« no previous file with comments | « ui/gfx/ozone/impl/file_surface_factory.cc ('k') | ui/gfx/ozone/overlay_candidates_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698