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

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

Issue 797533002: Add a glBegin/End pair to make glBindFramebuffer work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 6 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
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/gl/gl_surface.h" 5 #include "ui/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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 192 }
193 193
194 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { 194 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) {
195 return false; 195 return false;
196 } 196 }
197 197
198 bool GLSurface::OnMakeCurrent(GLContext* context) { 198 bool GLSurface::OnMakeCurrent(GLContext* context) {
199 return true; 199 return true;
200 } 200 }
201 201
202 void GLSurface::NotifyWasBound() {
203 }
204
202 bool GLSurface::SetBackbufferAllocation(bool allocated) { 205 bool GLSurface::SetBackbufferAllocation(bool allocated) {
203 return true; 206 return true;
204 } 207 }
205 208
206 void GLSurface::SetFrontbufferAllocation(bool allocated) { 209 void GLSurface::SetFrontbufferAllocation(bool allocated) {
207 } 210 }
208 211
209 void* GLSurface::GetShareHandle() { 212 void* GLSurface::GetShareHandle() {
210 NOTIMPLEMENTED(); 213 NOTIMPLEMENTED();
211 return NULL; 214 return NULL;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 z_order, transform, image, bounds_rect, crop_rect); 363 z_order, transform, image, bounds_rect, crop_rect);
361 } 364 }
362 365
363 bool GLSurfaceAdapter::IsSurfaceless() const { 366 bool GLSurfaceAdapter::IsSurfaceless() const {
364 return surface_->IsSurfaceless(); 367 return surface_->IsSurfaceless();
365 } 368 }
366 369
367 GLSurfaceAdapter::~GLSurfaceAdapter() {} 370 GLSurfaceAdapter::~GLSurfaceAdapter() {}
368 371
369 } // namespace gfx 372 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698