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

Side by Side Diff: cc/video_layer_impl.h

Issue 11366135: Extra logging for NinePatch layers in layerTreeAsText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ninepatch
Patch Set: drop the m_, it's cleaner Created 8 years, 1 month 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_VIDEO_LAYER_IMPL_H_ 5 #ifndef CC_VIDEO_LAYER_IMPL_H_
6 #define CC_VIDEO_LAYER_IMPL_H_ 6 #define CC_VIDEO_LAYER_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
(...skipping 26 matching lines...) Expand all
37 const FrameUnwrapper& unwrapper) 37 const FrameUnwrapper& unwrapper)
38 { 38 {
39 return make_scoped_ptr(new VideoLayerImpl(id, provider, unwrapper)); 39 return make_scoped_ptr(new VideoLayerImpl(id, provider, unwrapper));
40 } 40 }
41 virtual ~VideoLayerImpl(); 41 virtual ~VideoLayerImpl();
42 42
43 virtual void willDraw(ResourceProvider*) OVERRIDE; 43 virtual void willDraw(ResourceProvider*) OVERRIDE;
44 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; 44 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
45 virtual void didDraw(ResourceProvider*) OVERRIDE; 45 virtual void didDraw(ResourceProvider*) OVERRIDE;
46 46
47 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
48
49 // WebKit::WebVideoFrameProvider::Client implementation. 47 // WebKit::WebVideoFrameProvider::Client implementation.
50 virtual void stopUsingProvider(); // Callable on any thread. 48 virtual void stopUsingProvider(); // Callable on any thread.
51 virtual void didReceiveFrame(); // Callable on impl thread. 49 virtual void didReceiveFrame(); // Callable on impl thread.
52 virtual void didUpdateMatrix(const float*); // Callable on impl thread. 50 virtual void didUpdateMatrix(const float*); // Callable on impl thread.
53 51
54 virtual void didLoseContext() OVERRIDE; 52 virtual void didLoseContext() OVERRIDE;
55 53
56 void setNeedsRedraw(); 54 void setNeedsRedraw();
57 55
58 struct FramePlane { 56 struct FramePlane {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 ResourceProvider::ResourceId m_externalTextureResource; 91 ResourceProvider::ResourceId m_externalTextureResource;
94 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer; 92 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer;
95 93
96 // Each index in this array corresponds to a plane in media::VideoFrame. 94 // Each index in this array corresponds to a plane in media::VideoFrame.
97 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes]; 95 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes];
98 }; 96 };
99 97
100 } // namespace cc 98 } // namespace cc
101 99
102 #endif // CC_VIDEO_LAYER_IMPL_H_ 100 #endif // CC_VIDEO_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698