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

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

Issue 22277004: Add gfx::SurfaceFactoryWebview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: InProcessContext takes attrib struct Created 7 years, 4 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 (c) 2013 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 "android_webview/browser/aw_gl_surface.h"
6
7 namespace android_webview {
8
9 AwGLSurface::AwGLSurface() : fbo_(0) {}
10
11 AwGLSurface::~AwGLSurface() {}
12
13 void AwGLSurface::Destroy() {
14 }
15
16 bool AwGLSurface::IsOffscreen() {
17 return false;
18 }
19
20 unsigned int AwGLSurface::GetBackingFrameBufferObject() {
21 return fbo_;
22 }
23
24 bool AwGLSurface::SwapBuffers() {
25 return true;
26 }
27
28 gfx::Size AwGLSurface::GetSize() {
29 return gfx::Size();
30 }
31
32 void* AwGLSurface::GetHandle() {
33 return NULL;
34 }
35
36 void* AwGLSurface::GetDisplay() {
37 return NULL;
38 }
39
40 void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) {
41 fbo_ = fbo;
42 }
43
44 void AwGLSurface::ResetBackingFrameBufferObject() {
no sievers 2013/08/07 01:52:38 nit: Do we need this? :)
boliu 2013/08/07 02:58:48 I think it should be set back to 0, or maybe -1 in
45 fbo_ = 0;
46 }
47
48 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698