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

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

Issue 6880218: Removed "compositor" child window that was created by the GPU process. (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
« no previous file with comments | « ui/gfx/gl/gl_context.h ('k') | ui/gfx/gl/gl_context_egl.h » ('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 (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 <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "ui/gfx/gl/gl_context.h" 9 #include "ui/gfx/gl/gl_context.h"
10 #include "ui/gfx/gl/gl_bindings.h" 10 #include "ui/gfx/gl/gl_bindings.h"
11 #include "ui/gfx/gl/gl_implementation.h" 11 #include "ui/gfx/gl/gl_implementation.h"
12 #include "ui/gfx/gl/gl_switches.h" 12 #include "ui/gfx/gl/gl_switches.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 15
16 void GLContext::ReleaseCurrent() {
17 // TODO(apatrick): Implement this in GLContext derivatives.
18 }
19
20 GLSurface* GLContext::GetSurface() {
21 // TODO(apatrick): Remove this when surfaces are split from contexts.
22 return NULL;
23 }
24
16 unsigned int GLContext::GetBackingFrameBufferObject() { 25 unsigned int GLContext::GetBackingFrameBufferObject() {
17 return 0; 26 return 0;
18 } 27 }
19 28
20 std::string GLContext::GetExtensions() { 29 std::string GLContext::GetExtensions() {
21 DCHECK(IsCurrent()); 30 DCHECK(IsCurrent());
22 const char* ext = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)); 31 const char* ext = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS));
23 return std::string(ext ? ext : ""); 32 return std::string(ext ? ext : "");
24 } 33 }
25 34
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 return false; 75 return false;
67 case kGLImplementationMockGL: 76 case kGLImplementationMockGL:
68 return false; 77 return false;
69 default: 78 default:
70 NOTREACHED(); 79 NOTREACHED();
71 return true; 80 return true;
72 } 81 }
73 } 82 }
74 83
75 } // namespace gfx 84 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_context.h ('k') | ui/gfx/gl/gl_context_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698