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

Side by Side Diff: android_webview/browser/aw_gl_surface.cc

Issue 320283002: Fix crash when using surfaceless EGL on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix Mac build issue Created 6 years, 6 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
« no previous file with comments | « android_webview/browser/aw_gl_surface.h ('k') | ui/gl/gl_context_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "android_webview/browser/aw_gl_surface.h" 5 #include "android_webview/browser/aw_gl_surface.h"
6 6
7 namespace android_webview { 7 namespace android_webview {
8 8
9 AwGLSurface::AwGLSurface() : fbo_(0) {} 9 AwGLSurface::AwGLSurface() : fbo_(0) {}
10 10
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 gfx::Size AwGLSurface::GetSize() { 28 gfx::Size AwGLSurface::GetSize() {
29 return gfx::Size(1, 1); 29 return gfx::Size(1, 1);
30 } 30 }
31 31
32 void* AwGLSurface::GetHandle() { 32 void* AwGLSurface::GetHandle() {
33 return NULL; 33 return NULL;
34 } 34 }
35 35
36 bool AwGLSurface::RepresentsNonOwnedSurface() {
37 return true;
38 }
39
36 void* AwGLSurface::GetDisplay() { 40 void* AwGLSurface::GetDisplay() {
37 return NULL; 41 return NULL;
38 } 42 }
39 43
40 void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) { 44 void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) {
41 fbo_ = fbo; 45 fbo_ = fbo;
42 } 46 }
43 47
44 void AwGLSurface::ResetBackingFrameBufferObject() { 48 void AwGLSurface::ResetBackingFrameBufferObject() {
45 fbo_ = 0; 49 fbo_ = 0;
46 } 50 }
47 51
48 } // namespace android_webview 52 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_gl_surface.h ('k') | ui/gl/gl_context_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698