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

Side by Side Diff: ui/gfx/gl/gl_context_stub.cc

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/gl/gl_context_stub.h" 5 #include "ui/gfx/gl/gl_context_stub.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 GLContextStub::GLContextStub() { 9 GLContextStub::GLContextStub() {
10 } 10 }
11 11
12 GLContextStub::~GLContextStub() { 12 GLContextStub::~GLContextStub() {
13 } 13 }
14 14
15 bool GLContextStub::MakeCurrent() { 15 bool GLContextStub::MakeCurrent(GLSurface* surface) {
16 return true; 16 return true;
17 } 17 }
18 18
19 bool GLContextStub::IsCurrent() { 19 void GLContextStub::ReleaseCurrent(GLSurface* surface) {
20 return true;
21 } 20 }
22 21
23 bool GLContextStub::IsOffscreen() { 22 bool GLContextStub::IsCurrent(GLSurface* surface) {
24 return false;
25 }
26
27 bool GLContextStub::SwapBuffers() {
28 return true; 23 return true;
29 } 24 }
30 25
31 gfx::Size GLContextStub::GetSize() {
32 return size_;
33 }
34
35 void* GLContextStub::GetHandle() { 26 void* GLContextStub::GetHandle() {
36 return NULL; 27 return NULL;
37 } 28 }
38 29
39 std::string GLContextStub::GetExtensions() { 30 std::string GLContextStub::GetExtensions() {
40 return std::string(); 31 return std::string();
41 } 32 }
42 33
43 } // namespace gfx 34 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698