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

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

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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') | ui/gl/gl_switches.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) 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 193 }
194 194
195 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { 195 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) {
196 return false; 196 return false;
197 } 197 }
198 198
199 bool GLSurface::OnMakeCurrent(GLContext* context) { 199 bool GLSurface::OnMakeCurrent(GLContext* context) {
200 return true; 200 return true;
201 } 201 }
202 202
203 void GLSurface::NotifyWasBound() {
204 }
205
203 bool GLSurface::SetBackbufferAllocation(bool allocated) { 206 bool GLSurface::SetBackbufferAllocation(bool allocated) {
204 return true; 207 return true;
205 } 208 }
206 209
207 void GLSurface::SetFrontbufferAllocation(bool allocated) { 210 void GLSurface::SetFrontbufferAllocation(bool allocated) {
208 } 211 }
209 212
210 void* GLSurface::GetShareHandle() { 213 void* GLSurface::GetShareHandle() {
211 NOTIMPLEMENTED(); 214 NOTIMPLEMENTED();
212 return NULL; 215 return NULL;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 z_order, transform, image, bounds_rect, crop_rect); 364 z_order, transform, image, bounds_rect, crop_rect);
362 } 365 }
363 366
364 bool GLSurfaceAdapter::IsSurfaceless() const { 367 bool GLSurfaceAdapter::IsSurfaceless() const {
365 return surface_->IsSurfaceless(); 368 return surface_->IsSurfaceless();
366 } 369 }
367 370
368 GLSurfaceAdapter::~GLSurfaceAdapter() {} 371 GLSurfaceAdapter::~GLSurfaceAdapter() {}
369 372
370 } // namespace gfx 373 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698