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

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

Issue 1652873002: Android: Use virtualized context only for those with compatible config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 10 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
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_android.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) 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 <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void* GLSurface::GetDisplay() { 183 void* GLSurface::GetDisplay() {
184 NOTIMPLEMENTED(); 184 NOTIMPLEMENTED();
185 return NULL; 185 return NULL;
186 } 186 }
187 187
188 void* GLSurface::GetConfig() { 188 void* GLSurface::GetConfig() {
189 NOTIMPLEMENTED(); 189 NOTIMPLEMENTED();
190 return NULL; 190 return NULL;
191 } 191 }
192 192
193 unsigned GLSurface::GetFormat() { 193 GLSurface::Format GLSurface::GetFormat() {
194 NOTIMPLEMENTED(); 194 NOTIMPLEMENTED();
195 return 0; 195 return SURFACE_DEFAULT;
196 } 196 }
197 197
198 VSyncProvider* GLSurface::GetVSyncProvider() { 198 VSyncProvider* GLSurface::GetVSyncProvider() {
199 return NULL; 199 return NULL;
200 } 200 }
201 201
202 bool GLSurface::ScheduleOverlayPlane(int z_order, 202 bool GLSurface::ScheduleOverlayPlane(int z_order,
203 OverlayTransform transform, 203 OverlayTransform transform,
204 gl::GLImage* image, 204 gl::GLImage* image,
205 const Rect& bounds_rect, 205 const Rect& bounds_rect,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 366 }
367 367
368 void* GLSurfaceAdapter::GetDisplay() { 368 void* GLSurfaceAdapter::GetDisplay() {
369 return surface_->GetDisplay(); 369 return surface_->GetDisplay();
370 } 370 }
371 371
372 void* GLSurfaceAdapter::GetConfig() { 372 void* GLSurfaceAdapter::GetConfig() {
373 return surface_->GetConfig(); 373 return surface_->GetConfig();
374 } 374 }
375 375
376 unsigned GLSurfaceAdapter::GetFormat() { 376 GLSurface::Format GLSurfaceAdapter::GetFormat() {
377 return surface_->GetFormat(); 377 return surface_->GetFormat();
378 } 378 }
379 379
380 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { 380 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() {
381 return surface_->GetVSyncProvider(); 381 return surface_->GetVSyncProvider();
382 } 382 }
383 383
384 bool GLSurfaceAdapter::ScheduleOverlayPlane(int z_order, 384 bool GLSurfaceAdapter::ScheduleOverlayPlane(int z_order,
385 OverlayTransform transform, 385 OverlayTransform transform,
386 gl::GLImage* image, 386 gl::GLImage* image,
(...skipping 11 matching lines...) Expand all
398 return surface_->FlipsVertically(); 398 return surface_->FlipsVertically();
399 } 399 }
400 400
401 bool GLSurfaceAdapter::BuffersFlipped() const { 401 bool GLSurfaceAdapter::BuffersFlipped() const {
402 return surface_->BuffersFlipped(); 402 return surface_->BuffersFlipped();
403 } 403 }
404 404
405 GLSurfaceAdapter::~GLSurfaceAdapter() {} 405 GLSurfaceAdapter::~GLSurfaceAdapter() {}
406 406
407 } // namespace gfx 407 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698