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

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
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/surface_ozone_canvas.h" 10 #include "ui/ozone/public/surface_ozone_canvas.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( 49 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
50 const int32* desired_attributes) { 50 const int32* desired_attributes) {
51 return desired_attributes; 51 return desired_attributes;
52 } 52 }
53 53
54 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( 54 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates(
55 gfx::AcceleratedWidget w) { 55 gfx::AcceleratedWidget w) {
56 return NULL; 56 return NULL;
57 } 57 }
58 58
59 void SurfaceFactoryOzone::ScheduleOverlayPlane( 59 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativeBuffer(
60 gfx::AcceleratedWidget w, 60 gfx::Size size,
61 int plane_z_order, 61 BufferFormat format) {
62 gfx::OverlayTransform plane_transform, 62 return NULL;
63 ui::NativeBufferOzone buffer,
64 const gfx::Rect& display_bounds,
65 gfx::RectF crop_rect) {
66 NOTREACHED();
67 } 63 }
68 64
69 ui::NativeBufferOzone SurfaceFactoryOzone::CreateNativeBuffer( 65 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
70 gfx::Size size, 66 return false;
71 BufferFormat format) {
72 return 0;
73 } 67 }
74
75 } // namespace ui 68 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698