| OLD | NEW |
| 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/gfx/ozone/impl/file_surface_factory_ozone.h" | 5 #include "ui/gfx/ozone/impl/file_surface_factory_ozone.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 AcceleratedWidget FileSurfaceFactoryOzone::GetAcceleratedWidget() { | 49 AcceleratedWidget FileSurfaceFactoryOzone::GetAcceleratedWidget() { |
| 50 return 1; | 50 return 1; |
| 51 } | 51 } |
| 52 | 52 |
| 53 AcceleratedWidget FileSurfaceFactoryOzone::RealizeAcceleratedWidget( | 53 AcceleratedWidget FileSurfaceFactoryOzone::RealizeAcceleratedWidget( |
| 54 AcceleratedWidget widget) { | 54 AcceleratedWidget widget) { |
| 55 return 1; | 55 return 1; |
| 56 } | 56 } |
| 57 | 57 |
| 58 bool FileSurfaceFactoryOzone::LoadEGLGLES2Bindings() { | 58 bool FileSurfaceFactoryOzone::LoadEGLGLES2Bindings( |
| 59 AddGLLibraryCallback add_gl_library, |
| 60 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { |
| 59 return false; | 61 return false; |
| 60 } | 62 } |
| 61 | 63 |
| 62 bool FileSurfaceFactoryOzone::AttemptToResizeAcceleratedWidget( | 64 bool FileSurfaceFactoryOzone::AttemptToResizeAcceleratedWidget( |
| 63 AcceleratedWidget widget, | 65 AcceleratedWidget widget, |
| 64 const Rect& bounds) { | 66 const Rect& bounds) { |
| 65 device_ = skia::AdoptRef(new SkBitmapDevice(SkBitmap::kARGB_8888_Config, | 67 device_ = skia::AdoptRef(new SkBitmapDevice(SkBitmap::kARGB_8888_Config, |
| 66 bounds.width(), | 68 bounds.width(), |
| 67 bounds.height())); | 69 bounds.height())); |
| 68 canvas_ = skia::AdoptRef(new SkCanvas(device_.get())); | 70 canvas_ = skia::AdoptRef(new SkCanvas(device_.get())); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 85 | 87 |
| 86 SkCanvas* FileSurfaceFactoryOzone::GetCanvasForWidget(AcceleratedWidget w) { | 88 SkCanvas* FileSurfaceFactoryOzone::GetCanvasForWidget(AcceleratedWidget w) { |
| 87 return canvas_.get(); | 89 return canvas_.get(); |
| 88 } | 90 } |
| 89 | 91 |
| 90 VSyncProvider* FileSurfaceFactoryOzone::GetVSyncProvider(AcceleratedWidget w) { | 92 VSyncProvider* FileSurfaceFactoryOzone::GetVSyncProvider(AcceleratedWidget w) { |
| 91 return NULL; | 93 return NULL; |
| 92 } | 94 } |
| 93 | 95 |
| 94 } // namespace gfx | 96 } // namespace gfx |
| OLD | NEW |