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

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

Issue 8566041: Allow GLSurface to indicate that it supports a specific extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gpu_unittests. Created 9 years, 1 month 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_surface.h ('k') | ui/gfx/gl/gl_surface_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 "ui/gfx/gl/gl_surface.h" 5 #include "ui/gfx/gl/gl_surface.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 bool GLSurface::Initialize() 83 bool GLSurface::Initialize()
84 { 84 {
85 return true; 85 return true;
86 } 86 }
87 87
88 bool GLSurface::Resize(const gfx::Size& size) { 88 bool GLSurface::Resize(const gfx::Size& size) {
89 NOTIMPLEMENTED(); 89 NOTIMPLEMENTED();
90 return false; 90 return false;
91 } 91 }
92 92
93 std::string GLSurface::GetExtensions() {
94 DCHECK_EQ(GetCurrent(), this);
95 return std::string("");
96 }
97
93 unsigned int GLSurface::GetBackingFrameBufferObject() { 98 unsigned int GLSurface::GetBackingFrameBufferObject() {
94 return 0; 99 return 0;
95 } 100 }
96 101
97 bool GLSurface::SupportsPostSubBuffer() {
98 return false;
99 }
100
101 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { 102 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) {
102 return false; 103 return false;
103 } 104 }
104 105
105 bool GLSurface::OnMakeCurrent(GLContext* context) { 106 bool GLSurface::OnMakeCurrent(GLContext* context) {
106 return true; 107 return true;
107 } 108 }
108 109
109 void GLSurface::SetVisible(bool visible) { 110 void GLSurface::SetVisible(bool visible) {
110 } 111 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 190
190 void* GLSurfaceAdapter::GetConfig() { 191 void* GLSurfaceAdapter::GetConfig() {
191 return surface_->GetConfig(); 192 return surface_->GetConfig();
192 } 193 }
193 194
194 unsigned GLSurfaceAdapter::GetFormat() { 195 unsigned GLSurfaceAdapter::GetFormat() {
195 return surface_->GetFormat(); 196 return surface_->GetFormat();
196 } 197 }
197 198
198 } // namespace gfx 199 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface.h ('k') | ui/gfx/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698