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

Unified Diff: ui/gfx/ozone/surface_factory_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
« no previous file with comments | « ui/gfx/ozone/surface_factory_ozone.h ('k') | ui/gfx/ozone/surface_ozone_canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/surface_factory_ozone.cc
diff --git a/ui/gfx/ozone/surface_factory_ozone.cc b/ui/gfx/ozone/surface_factory_ozone.cc
deleted file mode 100644
index a1dbdd121dfd7cf284d9f372c1eac8eddfd3826c..0000000000000000000000000000000000000000
--- a/ui/gfx/ozone/surface_factory_ozone.cc
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2013 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.
-
-#include "ui/gfx/ozone/surface_factory_ozone.h"
-
-#include <stdlib.h>
-
-#include "base/command_line.h"
-#include "ui/gfx/ozone/surface_ozone_canvas.h"
-#include "ui/gfx/ozone/surface_ozone_egl.h"
-
-namespace gfx {
-
-// static
-SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL;
-
-SurfaceFactoryOzone::SurfaceFactoryOzone() {
- CHECK(!impl_) << "There should only be a single SurfaceFactoryOzone.";
- impl_ = this;
-}
-
-SurfaceFactoryOzone::~SurfaceFactoryOzone() {
- CHECK_EQ(impl_, this);
- impl_ = NULL;
-}
-
-SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() {
- CHECK(impl_) << "No SurfaceFactoryOzone implementation set.";
- return impl_;
-}
-
-intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
- return 0;
-}
-
-scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
- gfx::AcceleratedWidget widget) {
- NOTIMPLEMENTED();
- return scoped_ptr<SurfaceOzoneEGL>();
-}
-
-scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
- gfx::AcceleratedWidget widget) {
- NOTIMPLEMENTED();
- return scoped_ptr<SurfaceOzoneCanvas>();
-}
-
-const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
- const int32* desired_attributes) {
- return desired_attributes;
-}
-
-
-gfx::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates(
- gfx::AcceleratedWidget w) {
- return NULL;
-}
-
-void SurfaceFactoryOzone::ScheduleOverlayPlane(
- gfx::AcceleratedWidget w,
- int plane_z_order,
- gfx::OverlayTransform plane_transform,
- gfx::NativeBufferOzone buffer,
- const gfx::Rect& display_bounds,
- gfx::RectF crop_rect) {
- NOTREACHED();
-}
-
-gfx::NativeBufferOzone SurfaceFactoryOzone::CreateNativeBuffer(
- gfx::Size size,
- BufferFormat format) {
- return 0;
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/ozone/surface_factory_ozone.h ('k') | ui/gfx/ozone/surface_ozone_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698