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

Side by Side Diff: cc/CCVideoLayerImpl.h

Issue 10898023: Update cc snapshot to WK r126941 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 8 years, 3 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 | « cc/CCTiledLayerImplTest.cpp ('k') | cc/CCVideoLayerImpl.cpp » ('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 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 CCVideoLayerImpl_h 5 #ifndef CCVideoLayerImpl_h
6 #define CCVideoLayerImpl_h 6 #define CCVideoLayerImpl_h
7 7
8 #include "CCLayerImpl.h" 8 #include "CCLayerImpl.h"
9 #include "GraphicsContext3D.h" 9 #include "GraphicsContext3D.h"
10 #include "IntSize.h" 10 #include "IntSize.h"
(...skipping 12 matching lines...) Expand all
23 class CCVideoLayerImpl : public CCLayerImpl 23 class CCVideoLayerImpl : public CCLayerImpl
24 , public WebKit::WebVideoFrameProvider::Client { 24 , public WebKit::WebVideoFrameProvider::Client {
25 public: 25 public:
26 static PassOwnPtr<CCVideoLayerImpl> create(int id, WebKit::WebVideoFrameProv ider* provider) 26 static PassOwnPtr<CCVideoLayerImpl> create(int id, WebKit::WebVideoFrameProv ider* provider)
27 { 27 {
28 return adoptPtr(new CCVideoLayerImpl(id, provider)); 28 return adoptPtr(new CCVideoLayerImpl(id, provider));
29 } 29 }
30 virtual ~CCVideoLayerImpl(); 30 virtual ~CCVideoLayerImpl();
31 31
32 virtual void willDraw(CCResourceProvider*) OVERRIDE; 32 virtual void willDraw(CCResourceProvider*) OVERRIDE;
33 virtual void appendQuads(CCQuadSink&, bool& hadMissingTiles) OVERRIDE; 33 virtual void appendQuads(CCQuadSink&, CCAppendQuadsData&) OVERRIDE;
34 virtual void didDraw(CCResourceProvider*) OVERRIDE; 34 virtual void didDraw(CCResourceProvider*) OVERRIDE;
35 35
36 virtual void dumpLayerProperties(TextStream&, int indent) const OVERRIDE; 36 virtual void dumpLayerProperties(TextStream&, int indent) const OVERRIDE;
37 37
38 Mutex& providerMutex() { return m_providerMutex; } 38 Mutex& providerMutex() { return m_providerMutex; }
39 39
40 // WebKit::WebVideoFrameProvider::Client implementation. 40 // WebKit::WebVideoFrameProvider::Client implementation.
41 virtual void stopUsingProvider(); // Callable on any thread. 41 virtual void stopUsingProvider(); // Callable on any thread.
42 virtual void didReceiveFrame(); // Callable on impl thread. 42 virtual void didReceiveFrame(); // Callable on impl thread.
43 virtual void didUpdateMatrix(const float*); // Callable on impl thread. 43 virtual void didUpdateMatrix(const float*); // Callable on impl thread.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 GC3Denum m_format; 80 GC3Denum m_format;
81 CCResourceProvider::ResourceId m_externalTextureResource; 81 CCResourceProvider::ResourceId m_externalTextureResource;
82 82
83 // Each index in this array corresponds to a plane in WebKit::WebVideoFrame. 83 // Each index in this array corresponds to a plane in WebKit::WebVideoFrame.
84 FramePlane m_framePlanes[WebKit::WebVideoFrame::maxPlanes]; 84 FramePlane m_framePlanes[WebKit::WebVideoFrame::maxPlanes];
85 }; 85 };
86 86
87 } 87 }
88 88
89 #endif // CCVideoLayerImpl_h 89 #endif // CCVideoLayerImpl_h
OLDNEW
« no previous file with comments | « cc/CCTiledLayerImplTest.cpp ('k') | cc/CCVideoLayerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698