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

Side by Side Diff: media/renderers/skcanvas_video_renderer.cc

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 (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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698