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

Unified Diff: content/browser/compositor/overlay_candidate_validator_ozone.cc

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
Index: content/browser/compositor/overlay_candidate_validator_ozone.cc
diff --git a/content/browser/compositor/overlay_candidate_validator_ozone.cc b/content/browser/compositor/overlay_candidate_validator_ozone.cc
index 7ca5a97b2c8d794857b1e8620e75fd7c344ea253..b4a3cfeace00a165b932764fc39bb99063675da7 100644
--- a/content/browser/compositor/overlay_candidate_validator_ozone.cc
+++ b/content/browser/compositor/overlay_candidate_validator_ozone.cc
@@ -4,15 +4,15 @@
#include "content/browser/compositor/overlay_candidate_validator_ozone.h"
-#include "ui/gfx/ozone/overlay_candidates_ozone.h"
+#include "ui/ozone/public/overlay_candidates_ozone.h"
namespace content {
-static gfx::SurfaceFactoryOzone::BufferFormat GetOzoneFormat(
+static ui::SurfaceFactoryOzone::BufferFormat GetOzoneFormat(
cc::ResourceFormat overlay_format) {
switch (overlay_format) {
case cc::RGBA_8888:
- return gfx::SurfaceFactoryOzone::RGBA_8888;
+ return ui::SurfaceFactoryOzone::RGBA_8888;
case cc::RGBA_4444:
case cc::BGRA_8888:
case cc::LUMINANCE_8:
@@ -21,20 +21,21 @@ static gfx::SurfaceFactoryOzone::BufferFormat GetOzoneFormat(
break;
}
NOTREACHED();
- return gfx::SurfaceFactoryOzone::UNKNOWN;
+ return ui::SurfaceFactoryOzone::UNKNOWN;
}
OverlayCandidateValidatorOzone::OverlayCandidateValidatorOzone(
gfx::AcceleratedWidget widget,
- gfx::OverlayCandidatesOzone* overlay_candidates)
- : widget_(widget), overlay_candidates_(overlay_candidates) {}
+ ui::OverlayCandidatesOzone* overlay_candidates)
+ : widget_(widget), overlay_candidates_(overlay_candidates) {
+}
OverlayCandidateValidatorOzone::~OverlayCandidateValidatorOzone() {}
void OverlayCandidateValidatorOzone::CheckOverlaySupport(
cc::OverlayCandidateList* surfaces) {
DCHECK_GE(2U, surfaces->size());
- gfx::OverlayCandidatesOzone::OverlaySurfaceCandidateList ozone_surface_list;
+ ui::OverlayCandidatesOzone::OverlaySurfaceCandidateList ozone_surface_list;
ozone_surface_list.resize(surfaces->size());
for (size_t i = 0; i < surfaces->size(); i++) {

Powered by Google App Engine
This is Rietveld 408576698