| 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 "base/macros.h" |
| 10 #include "gpu/GLES2/gl2extchromium.h" | 10 #include "gpu/GLES2/gl2extchromium.h" |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 gl->Flush(); | 668 gl->Flush(); |
| 669 | 669 |
| 670 SyncTokenClientImpl client(gl); | 670 SyncTokenClientImpl client(gl); |
| 671 video_frame->UpdateReleaseSyncToken(&client); | 671 video_frame->UpdateReleaseSyncToken(&client); |
| 672 } | 672 } |
| 673 | 673 |
| 674 void SkCanvasVideoRenderer::ResetCache() { | 674 void SkCanvasVideoRenderer::ResetCache() { |
| 675 DCHECK(thread_checker_.CalledOnValidThread()); | 675 DCHECK(thread_checker_.CalledOnValidThread()); |
| 676 // Clear cached values. | 676 // Clear cached values. |
| 677 last_image_ = nullptr; | 677 last_image_ = nullptr; |
| 678 last_timestamp_ = kNoTimestamp(); | 678 last_timestamp_ = kNoTimestamp; |
| 679 } | 679 } |
| 680 | 680 |
| 681 } // namespace media | 681 } // namespace media |
| OLD | NEW |