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

Side by Side Diff: media/gpu/rendering_helper.cc

Issue 1997083003: media: Fix gn deps on some media/ targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « media/gpu/BUILD.gn ('k') | media/gpu/vaapi_wrapper.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 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 "media/gpu/rendering_helper.h" 5 #include "media/gpu/rendering_helper.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 #include "ui/gl/gl_context.h" 25 #include "ui/gl/gl_context.h"
26 #include "ui/gl/gl_implementation.h" 26 #include "ui/gl/gl_implementation.h"
27 #include "ui/gl/gl_surface.h" 27 #include "ui/gl/gl_surface.h"
28 #include "ui/gl/init/gl_factory.h" 28 #include "ui/gl/init/gl_factory.h"
29 29
30 #if defined(OS_WIN) 30 #if defined(OS_WIN)
31 #include <windows.h> 31 #include <windows.h>
32 #endif 32 #endif
33 33
34 #if defined(USE_X11) 34 #if defined(USE_X11)
35 #include "ui/gfx/x/x11_types.h" 35 #include "ui/gfx/x/x11_types.h" // nogncheck
36 #endif 36 #endif
37 37
38 #if defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11) 38 #if defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11)
39 #include "ui/gl/gl_surface_glx.h" 39 #include "ui/gl/gl_surface_glx.h"
40 #define GL_VARIANT_GLX 1 40 #define GL_VARIANT_GLX 1
41 #else 41 #else
42 #include "ui/gl/gl_surface_egl.h" 42 #include "ui/gl/gl_surface_egl.h"
43 #define GL_VARIANT_EGL 1 43 #define GL_VARIANT_EGL 1
44 #endif 44 #endif
45 45
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 // When the rendering falls behind, drops frames. 872 // When the rendering falls behind, drops frames.
873 while (scheduled_render_time_ < target) { 873 while (scheduled_render_time_ < target) {
874 scheduled_render_time_ += frame_duration_; 874 scheduled_render_time_ += frame_duration_;
875 DropOneFrameForAllVideos(); 875 DropOneFrameForAllVideos();
876 } 876 }
877 877
878 message_loop_->PostDelayedTask(FROM_HERE, render_task_.callback(), 878 message_loop_->PostDelayedTask(FROM_HERE, render_task_.callback(),
879 target - now); 879 target - now);
880 } 880 }
881 } // namespace media 881 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/BUILD.gn ('k') | media/gpu/vaapi_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698