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

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

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions Created 5 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_image_memory.h ('k') | ui/gl/gl_image_ozone_native_pixmap.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_image_memory.h" 5 #include "ui/gl/gl_image_memory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/numerics/safe_conversions.h" 8 #include "base/numerics/safe_conversions.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "ui/gfx/buffer_format_util.h" 10 #include "ui/gfx/buffer_format_util.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 if (data_row_length != rect.width()) 429 if (data_row_length != rect.width())
430 glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); 430 glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
431 } 431 }
432 432
433 return true; 433 return true;
434 } 434 }
435 435
436 bool GLImageMemory::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 436 bool GLImageMemory::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
437 int z_order, 437 int z_order,
438 gfx::OverlayTransform transform, 438 gfx::OverlayTransform transform,
439 gfx::BufferFormat storage_format,
439 const gfx::Rect& bounds_rect, 440 const gfx::Rect& bounds_rect,
440 const gfx::RectF& crop_rect) { 441 const gfx::RectF& crop_rect,
442 bool handle_scaling) {
441 return false; 443 return false;
442 } 444 }
443 445
444 // static 446 // static
445 unsigned GLImageMemory::GetInternalFormatForTesting(BufferFormat format) { 447 unsigned GLImageMemory::GetInternalFormatForTesting(BufferFormat format) {
446 DCHECK(ValidFormat(format)); 448 DCHECK(ValidFormat(format));
447 return TextureFormat(format); 449 return TextureFormat(format);
448 } 450 }
449 451
450 } // namespace gl 452 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/gl_image_memory.h ('k') | ui/gl/gl_image_ozone_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698