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

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

Issue 23438002: Adding functionality to paint and signal buffer swap for ozone surface factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing call to SchedulePageFlip in gl_surface_egl Created 7 years, 3 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 | Annotate | Revision Log
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/base/ozone/surface_factory_ozone.h" 5 #include "ui/base/ozone/surface_factory_ozone.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 namespace ui { 9 namespace ui {
10 10
11 // static 11 // static
12 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL; 12 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL;
13 13
14 class SurfaceFactoryOzoneStub : public SurfaceFactoryOzone { 14 class SurfaceFactoryOzoneStub : public SurfaceFactoryOzone {
15 public: 15 public:
16 SurfaceFactoryOzoneStub() {} 16 SurfaceFactoryOzoneStub() {}
17 virtual ~SurfaceFactoryOzoneStub() {} 17 virtual ~SurfaceFactoryOzoneStub() {}
18 18
19 virtual void InitializeHardware() OVERRIDE {} 19 virtual HardwareState InitializeHardware() OVERRIDE { return INITIALIZED; }
20 virtual void ShutdownHardware() OVERRIDE {} 20 virtual void ShutdownHardware() OVERRIDE {}
21 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE { return 0; } 21 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE { return 0; }
22 virtual gfx::AcceleratedWidget RealizeAcceleratedWidget( 22 virtual gfx::AcceleratedWidget RealizeAcceleratedWidget(
23 gfx::AcceleratedWidget w) OVERRIDE { 23 gfx::AcceleratedWidget w) OVERRIDE {
24 return 0; 24 return 0;
25 } 25 }
26 virtual bool LoadEGLGLES2Bindings() OVERRIDE { return true; } 26 virtual bool LoadEGLGLES2Bindings() OVERRIDE { return true; }
27 virtual bool AttemptToResizeAcceleratedWidget( 27 virtual bool AttemptToResizeAcceleratedWidget(
28 gfx::AcceleratedWidget w, 28 gfx::AcceleratedWidget w,
29 const gfx::Rect& bounds) OVERRIDE { 29 const gfx::Rect& bounds) OVERRIDE {
(...skipping 24 matching lines...) Expand all
54 char* envvar = getenv("ASH_DISPLAY_SPEC"); 54 char* envvar = getenv("ASH_DISPLAY_SPEC");
55 if (envvar) 55 if (envvar)
56 return envvar; 56 return envvar;
57 return "720x1280*2"; 57 return "720x1280*2";
58 } 58 }
59 59
60 gfx::Screen* SurfaceFactoryOzone::CreateDesktopScreen() { 60 gfx::Screen* SurfaceFactoryOzone::CreateDesktopScreen() {
61 return NULL; 61 return NULL;
62 } 62 }
63 63
64 intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
65 return 0;
66 }
67
68 bool SurfaceFactoryOzone::SchedulePageFlip(gfx::AcceleratedWidget) {
69 return true;
70 }
71
64 // static 72 // static
65 SurfaceFactoryOzone* SurfaceFactoryOzone::CreateTestHelper() { 73 SurfaceFactoryOzone* SurfaceFactoryOzone::CreateTestHelper() {
66 return new SurfaceFactoryOzoneStub; 74 return new SurfaceFactoryOzoneStub;
67 } 75 }
68 76
69 } // namespace ui 77 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698