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

Side by Side Diff: gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
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 "gpu/command_buffer/service/async_pixel_transfer_manager_egl.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_egl.h"
6 6
7 #include <list> 7 #include <list>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/debug/trace_event.h"
12 #include "base/debug/trace_event_synthetic_delay.h"
13 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
14 #include "base/logging.h" 12 #include "base/logging.h"
15 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
16 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
17 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "base/trace_event/trace_event.h"
17 #include "base/trace_event/trace_event_synthetic_delay.h"
18 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" 18 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h"
19 #include "ui/gl/gl_context.h" 19 #include "ui/gl/gl_context.h"
20 #include "ui/gl/gl_surface_egl.h" 20 #include "ui/gl/gl_surface_egl.h"
21 #include "ui/gl/scoped_binders.h" 21 #include "ui/gl/scoped_binders.h"
22 22
23 namespace gpu { 23 namespace gpu {
24 24
25 namespace { 25 namespace {
26 26
27 bool CheckErrors(const char* file, int line) { 27 bool CheckErrors(const char* file, int line) {
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 737
738 AsyncPixelTransferDelegate* 738 AsyncPixelTransferDelegate*
739 AsyncPixelTransferManagerEGL::CreatePixelTransferDelegateImpl( 739 AsyncPixelTransferManagerEGL::CreatePixelTransferDelegateImpl(
740 gles2::TextureRef* ref, 740 gles2::TextureRef* ref,
741 const AsyncTexImage2DParams& define_params) { 741 const AsyncTexImage2DParams& define_params) {
742 return new AsyncPixelTransferDelegateEGL( 742 return new AsyncPixelTransferDelegateEGL(
743 &shared_state_, ref->service_id(), define_params); 743 &shared_state_, ref->service_id(), define_params);
744 } 744 }
745 745
746 } // namespace gpu 746 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698