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

Side by Side Diff: ui/gl/gl_image_io_surface.mm

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 1 month 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_io_surface.h ('k') | ui/gl/gl_image_memory.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_io_surface.h" 5 #include "ui/gl/gl_image_io_surface.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/mac/bind_objc_block.h" 10 #include "base/mac/bind_objc_block.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 yuv_to_rgb_converter->CopyYUV420ToRGB(target, size_, rgb_texture); 342 yuv_to_rgb_converter->CopyYUV420ToRGB(target, size_, rgb_texture);
343 return true; 343 return true;
344 } 344 }
345 345
346 bool GLImageIOSurface::CopyTexSubImage(unsigned target, 346 bool GLImageIOSurface::CopyTexSubImage(unsigned target,
347 const gfx::Point& offset, 347 const gfx::Point& offset,
348 const gfx::Rect& rect) { 348 const gfx::Rect& rect) {
349 return false; 349 return false;
350 } 350 }
351 351
352 bool GLImageIOSurface::CopySubImageData(unsigned texture_id,
353 const gfx::Point& offset,
354 const gfx::Rect& rect,
355 GLFence* in_fence,
356 GLFence* out_fence) {
357 return false;
358 }
359
352 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 360 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
353 int z_order, 361 int z_order,
354 gfx::OverlayTransform transform, 362 gfx::OverlayTransform transform,
355 const gfx::Rect& bounds_rect, 363 const gfx::Rect& bounds_rect,
356 const gfx::RectF& crop_rect) { 364 const gfx::RectF& crop_rect) {
357 NOTREACHED(); 365 NOTREACHED();
358 return false; 366 return false;
359 } 367 }
360 368
361 void GLImageIOSurface::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 369 void GLImageIOSurface::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 413 }
406 414
407 // static 415 // static
408 GLImageIOSurface* GLImageIOSurface::FromGLImage(GLImage* image) { 416 GLImageIOSurface* GLImageIOSurface::FromGLImage(GLImage* image) {
409 if (!image || image->GetType() != Type::IOSURFACE) 417 if (!image || image->GetType() != Type::IOSURFACE)
410 return nullptr; 418 return nullptr;
411 return static_cast<GLImageIOSurface*>(image); 419 return static_cast<GLImageIOSurface*>(image);
412 } 420 }
413 421
414 } // namespace gl 422 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/gl_image_io_surface.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698