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

Side by Side Diff: ui/gfx/ozone/surface_ozone.cc

Issue 205433002: ozone: Add OzoneSurface object that is owned by compositor, GLSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing InitializeCanvas to FileSurface 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
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 #include "ui/gfx/ozone/surface_ozone.h"
6
7 #include "ui/gfx/vsync_provider.h"
8
9 class SkCanvas;
10
11 namespace gfx {
12
13 SurfaceOzone::SurfaceOzone() {}
14
15 SurfaceOzone::~SurfaceOzone() {}
16
17 bool SurfaceOzone::InitializeEGL() { return false; }
18
19 intptr_t /* EGLNativeWindowType */ SurfaceOzone::GetEGLNativeWindow() {
20 LOG(FATAL) << "not supported";
21 return 0; // not reached
22 }
23
24 bool SurfaceOzone::InitializeCanvas() { return false; }
25
26 SkCanvas* SurfaceOzone::GetCanvas() {
27 LOG(FATAL) << "not supported";
28 return NULL; // not reached
29 }
30
31 bool SurfaceOzone::ResizeCanvas(const gfx::Rect& viewport_size) {
32 NOTIMPLEMENTED();
33 return false;
34 }
35
36 bool SurfaceOzone::SwapCanvas() {
37 NOTIMPLEMENTED();
38 return true;
39 }
40
41 scoped_ptr<gfx::VSyncProvider> SurfaceOzone::CreateVSyncProvider() {
42 NOTIMPLEMENTED();
43 return scoped_ptr<gfx::VSyncProvider>();
44 }
45
46 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698