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

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

Issue 1394403002: Mac Overlays: Plumb through GL solid color overlay support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 bool GLSurface::ScheduleOverlayPlane(int z_order, 183 bool GLSurface::ScheduleOverlayPlane(int z_order,
184 OverlayTransform transform, 184 OverlayTransform transform,
185 GLImage* image, 185 GLImage* image,
186 const Rect& bounds_rect, 186 const Rect& bounds_rect,
187 const RectF& crop_rect) { 187 const RectF& crop_rect) {
188 NOTIMPLEMENTED(); 188 NOTIMPLEMENTED();
189 return false; 189 return false;
190 } 190 }
191 191
192 bool GLSurface::ScheduleSolidColorOverlayPlane(int z_order,
193 const Rect& bounds_rect,
194 float red,
195 float green,
196 float blue,
197 float alpha) {
198 NOTIMPLEMENTED();
199 return false;
200 }
201
192 bool GLSurface::IsSurfaceless() const { 202 bool GLSurface::IsSurfaceless() const {
193 return false; 203 return false;
194 } 204 }
195 205
196 GLSurface* GLSurface::GetCurrent() { 206 GLSurface* GLSurface::GetCurrent() {
197 return current_surface_.Pointer()->Get(); 207 return current_surface_.Pointer()->Get();
198 } 208 }
199 209
200 GLSurface::~GLSurface() { 210 GLSurface::~GLSurface() {
201 if (GetCurrent() == this) 211 if (GetCurrent() == this)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 z_order, transform, image, bounds_rect, crop_rect); 337 z_order, transform, image, bounds_rect, crop_rect);
328 } 338 }
329 339
330 bool GLSurfaceAdapter::IsSurfaceless() const { 340 bool GLSurfaceAdapter::IsSurfaceless() const {
331 return surface_->IsSurfaceless(); 341 return surface_->IsSurfaceless();
332 } 342 }
333 343
334 GLSurfaceAdapter::~GLSurfaceAdapter() {} 344 GLSurfaceAdapter::~GLSurfaceAdapter() {}
335 345
336 } // namespace gfx 346 } // namespace gfx
OLDNEW
« gpu/command_buffer/build_gles2_cmd_buffer.py ('K') | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698