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

Side by Side Diff: ui/gfx/ozone/impl/file_surface_factory_ozone.cc

Issue 47213009: Add callbacks to register EGL bindings from Ozone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/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
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
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
OLDNEW
« no previous file with comments | « ui/gfx/ozone/impl/file_surface_factory_ozone.h ('k') | ui/gfx/ozone/impl/software_surface_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698