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

Side by Side Diff: ui/ozone/platform/cast/surface_factory_cast.cc

Issue 2688623004: Move native_pixmap.h from ui/ozone/public to ui/gfx (Closed)
Patch Set: Rebase Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ui/ozone/gl/gl_image_ozone_native_pixmap.h ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/cast/surface_factory_cast.h" 5 #include "ui/ozone/platform/cast/surface_factory_cast.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "chromecast/public/cast_egl_platform.h" 11 #include "chromecast/public/cast_egl_platform.h"
12 #include "third_party/skia/include/core/SkSurface.h" 12 #include "third_party/skia/include/core/SkSurface.h"
13 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
14 #include "ui/gfx/native_pixmap.h"
14 #include "ui/gfx/vsync_provider.h" 15 #include "ui/gfx/vsync_provider.h"
15 #include "ui/ozone/public/native_pixmap.h"
16 #include "ui/ozone/public/surface_ozone_canvas.h" 16 #include "ui/ozone/public/surface_ozone_canvas.h"
17 17
18 namespace ui { 18 namespace ui {
19 19
20 namespace { 20 namespace {
21 21
22 class DummySurface : public SurfaceOzoneCanvas { 22 class DummySurface : public SurfaceOzoneCanvas {
23 public: 23 public:
24 DummySurface() {} 24 DummySurface() {}
25 ~DummySurface() override {} 25 ~DummySurface() override {}
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 scoped_refptr<NativePixmap> SurfaceFactoryCast::CreateNativePixmap( 125 scoped_refptr<NativePixmap> SurfaceFactoryCast::CreateNativePixmap(
126 gfx::AcceleratedWidget widget, 126 gfx::AcceleratedWidget widget,
127 gfx::Size size, 127 gfx::Size size,
128 gfx::BufferFormat format, 128 gfx::BufferFormat format,
129 gfx::BufferUsage usage) { 129 gfx::BufferUsage usage) {
130 return make_scoped_refptr(new CastPixmap(egl_implementation_.get())); 130 return make_scoped_refptr(new CastPixmap(egl_implementation_.get()));
131 } 131 }
132 132
133 } // namespace ui 133 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/gl/gl_image_ozone_native_pixmap.h ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698