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

Side by Side Diff: ui/gfx/ozone/surface_ozone_base.h

Issue 205433002: ozone: Add OzoneSurface object that is owned by compositor, GLSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/ozone/surface_ozone.h ('k') | ui/gfx/ozone/surface_ozone_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_OZONE_SURFACE_OZONE_BASE_H_
6 #define UI_GFX_OZONE_SURFACE_OZONE_BASE_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "skia/ext/refptr.h"
11 #include "ui/gfx/gfx_export.h"
12 #include "ui/gfx/ozone/surface_ozone.h"
13
14 namespace gfx {
15
16 // Base class for in-tree implementations of SurfaceOzone.
17 //
18 // This adds default implementations of all the methods in SurfaceOzone,
19 // for use by in-tree subclasses.
20 //
21 // If an out-of-tree implementation inherits this, it is possible there
22 // will be silent breakage instead of a compile time failure as a result
23 // of changes to the interface.
24 class GFX_EXPORT SurfaceOzoneBase : public SurfaceOzone {
25 public:
26 SurfaceOzoneBase();
27 virtual ~SurfaceOzoneBase() OVERRIDE;
28
29 // SurfaceOzone:
30 virtual bool InitializeEGL() OVERRIDE;
31 virtual intptr_t /* EGLNativeWindowType */ GetEGLNativeWindow() OVERRIDE;
32 virtual bool InitializeCanvas() OVERRIDE;
33 virtual skia::RefPtr<SkCanvas> GetCanvas() OVERRIDE;
34 virtual bool ResizeCanvas(const gfx::Size& viewport_size) OVERRIDE;
35 virtual bool PresentCanvas() OVERRIDE;
36 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE;
37 };
38
39 } // namespace gfx
40
41 #endif // UI_GFX_OZONE_SURFACE_OZONE_BASE_H_
OLDNEW
« no previous file with comments | « ui/gfx/ozone/surface_ozone.h ('k') | ui/gfx/ozone/surface_ozone_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698