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

Side by Side Diff: ui/ozone/public/surface_factory_ozone.cc

Issue 365193003: Change NativeBufferOzone to be an object and move the overlay calls to the surface object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/public/surface_factory_ozone.h ('k') | ui/ozone/public/surface_ozone_egl.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/public/surface_factory_ozone.h" 5 #include "ui/ozone/public/surface_factory_ozone.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "ui/ozone/public/native_pixmap.h"
10 #include "ui/ozone/public/surface_ozone_canvas.h" 11 #include "ui/ozone/public/surface_ozone_canvas.h"
11 #include "ui/ozone/public/surface_ozone_egl.h" 12 #include "ui/ozone/public/surface_ozone_egl.h"
12 13
13 namespace ui { 14 namespace ui {
14 15
15 // static 16 // static
16 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL; 17 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL;
17 18
18 SurfaceFactoryOzone::SurfaceFactoryOzone() { 19 SurfaceFactoryOzone::SurfaceFactoryOzone() {
19 CHECK(!impl_) << "There should only be a single SurfaceFactoryOzone."; 20 CHECK(!impl_) << "There should only be a single SurfaceFactoryOzone.";
(...skipping 29 matching lines...) Expand all
49 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( 50 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
50 const int32* desired_attributes) { 51 const int32* desired_attributes) {
51 return desired_attributes; 52 return desired_attributes;
52 } 53 }
53 54
54 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( 55 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates(
55 gfx::AcceleratedWidget w) { 56 gfx::AcceleratedWidget w) {
56 return NULL; 57 return NULL;
57 } 58 }
58 59
59 void SurfaceFactoryOzone::ScheduleOverlayPlane( 60 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
60 gfx::AcceleratedWidget w, 61 gfx::Size size,
61 int plane_z_order, 62 BufferFormat format) {
62 gfx::OverlayTransform plane_transform, 63 return NULL;
63 ui::NativeBufferOzone buffer,
64 const gfx::Rect& display_bounds,
65 gfx::RectF crop_rect) {
66 NOTREACHED();
67 } 64 }
68 65
69 ui::NativeBufferOzone SurfaceFactoryOzone::CreateNativeBuffer( 66 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
70 gfx::Size size, 67 return false;
71 BufferFormat format) {
72 return 0;
73 } 68 }
74
75 } // namespace ui 69 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.h ('k') | ui/ozone/public/surface_ozone_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698