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

Unified 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: Forgot to include check Created 7 years, 4 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
Index: ui/base/ozone/surface_factory_ozone.cc
diff --git a/ui/base/ozone/surface_factory_ozone.cc b/ui/base/ozone/surface_factory_ozone.cc
index 7d8d64bedbe6120e9398e9a21cad3d2f1f3cbdcd..5d16cca631b606ea3ad8ec394055d5442b0f1959 100644
--- a/ui/base/ozone/surface_factory_ozone.cc
+++ b/ui/base/ozone/surface_factory_ozone.cc
@@ -16,8 +16,9 @@ class SurfaceFactoryOzoneStub : public SurfaceFactoryOzone {
SurfaceFactoryOzoneStub() {}
virtual ~SurfaceFactoryOzoneStub() {}
- virtual void InitializeHardware() OVERRIDE {}
+ virtual bool InitializeHardware() OVERRIDE { return true; }
virtual void ShutdownHardware() OVERRIDE {}
+ virtual EGLNativeDisplayType GetNativeDisplay() OVERRIDE { return 0; }
virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE { return 0; }
virtual gfx::AcceleratedWidget RealizeAcceleratedWidget(
gfx::AcceleratedWidget w) OVERRIDE {
@@ -29,10 +30,12 @@ class SurfaceFactoryOzoneStub : public SurfaceFactoryOzone {
const gfx::Rect& bounds) OVERRIDE {
return false;
}
+ virtual bool SwapBuffers() OVERRIDE { return true; }
virtual gfx::VSyncProvider* GetVSyncProvider(
gfx::AcceleratedWidget w) OVERRIDE {
return NULL;
}
+ virtual void Paint(const SkBitmap& bitmap, const gfx::Rect& rect) OVERRIDE {}
};
SurfaceFactoryOzone::SurfaceFactoryOzone() {

Powered by Google App Engine
This is Rietveld 408576698