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

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

Issue 5987004: Map the render process's glBindFramebuffer(0) to the context's backing FBO.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | « app/gfx/gl/gl_context.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/app_switches.h" 7 #include "app/app_switches.h"
8 #include "app/gfx/gl/gl_context.h" 8 #include "app/gfx/gl/gl_context.h"
9 #include "app/gfx/gl/gl_bindings.h" 9 #include "app/gfx/gl/gl_bindings.h"
10 #include "app/gfx/gl/gl_implementation.h" 10 #include "app/gfx/gl/gl_implementation.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 15
16 unsigned int GLContext::GetBackingFrameBufferObject() {
17 return 0;
18 }
19
16 std::string GLContext::GetExtensions() { 20 std::string GLContext::GetExtensions() {
17 DCHECK(IsCurrent()); 21 DCHECK(IsCurrent());
18 const char* ext = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)); 22 const char* ext = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS));
19 return std::string(ext ? ext : ""); 23 return std::string(ext ? ext : "");
20 } 24 }
21 25
22 bool GLContext::HasExtension(const char* name) { 26 bool GLContext::HasExtension(const char* name) {
23 std::string extensions = GetExtensions(); 27 std::string extensions = GetExtensions();
24 extensions += " "; 28 extensions += " ";
25 29
(...skipping 19 matching lines...) Expand all
45 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); 49 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
46 if (glGetError() != GL_NO_ERROR) { 50 if (glGetError() != GL_NO_ERROR) {
47 LOG(ERROR) << "glClear failed."; 51 LOG(ERROR) << "glClear failed.";
48 return false; 52 return false;
49 } 53 }
50 54
51 return true; 55 return true;
52 } 56 }
53 57
54 } // namespace gfx 58 } // namespace gfx
OLDNEW
« no previous file with comments | « app/gfx/gl/gl_context.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698