| OLD | NEW | 
|---|
| 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 "media/renderers/skcanvas_video_renderer.h" | 5 #include "media/renderers/skcanvas_video_renderer.h" | 
| 6 | 6 | 
| 7 #include <limits> | 7 #include <limits> | 
| 8 | 8 | 
|  | 9 #include "base/macros.h" | 
| 9 #include "gpu/GLES2/gl2extchromium.h" | 10 #include "gpu/GLES2/gl2extchromium.h" | 
| 10 #include "gpu/command_buffer/client/gles2_interface.h" | 11 #include "gpu/command_buffer/client/gles2_interface.h" | 
| 11 #include "gpu/command_buffer/common/mailbox_holder.h" | 12 #include "gpu/command_buffer/common/mailbox_holder.h" | 
| 12 #include "media/base/video_frame.h" | 13 #include "media/base/video_frame.h" | 
| 13 #include "media/base/yuv_convert.h" | 14 #include "media/base/yuv_convert.h" | 
| 14 #include "skia/ext/refptr.h" | 15 #include "skia/ext/refptr.h" | 
| 15 #include "third_party/libyuv/include/libyuv.h" | 16 #include "third_party/libyuv/include/libyuv.h" | 
| 16 #include "third_party/skia/include/core/SkCanvas.h" | 17 #include "third_party/skia/include/core/SkCanvas.h" | 
| 17 #include "third_party/skia/include/core/SkImage.h" | 18 #include "third_party/skia/include/core/SkImage.h" | 
| 18 #include "third_party/skia/include/core/SkImageGenerator.h" | 19 #include "third_party/skia/include/core/SkImageGenerator.h" | 
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 593 } | 594 } | 
| 594 | 595 | 
| 595 void SkCanvasVideoRenderer::ResetCache() { | 596 void SkCanvasVideoRenderer::ResetCache() { | 
| 596   DCHECK(thread_checker_.CalledOnValidThread()); | 597   DCHECK(thread_checker_.CalledOnValidThread()); | 
| 597   // Clear cached values. | 598   // Clear cached values. | 
| 598   last_image_ = nullptr; | 599   last_image_ = nullptr; | 
| 599   last_timestamp_ = kNoTimestamp(); | 600   last_timestamp_ = kNoTimestamp(); | 
| 600 } | 601 } | 
| 601 | 602 | 
| 602 }  // namespace media | 603 }  // namespace media | 
| OLD | NEW | 
|---|