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

Side by Side Diff: cc/video_layer_impl.h

Issue 11450019: Finish the rename from cc::GraphicsContext to cc::OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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 | Annotate | Revision Log
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 <public/WebVideoFrameProvider.h> 8 #include <public/WebVideoFrameProvider.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 virtual void willDraw(ResourceProvider*) OVERRIDE; 44 virtual void willDraw(ResourceProvider*) OVERRIDE;
45 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; 45 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
46 virtual void didDraw(ResourceProvider*) OVERRIDE; 46 virtual void didDraw(ResourceProvider*) OVERRIDE;
47 47
48 // WebKit::WebVideoFrameProvider::Client implementation. 48 // WebKit::WebVideoFrameProvider::Client implementation.
49 virtual void stopUsingProvider(); // Callable on any thread. 49 virtual void stopUsingProvider(); // Callable on any thread.
50 virtual void didReceiveFrame(); // Callable on impl thread. 50 virtual void didReceiveFrame(); // Callable on impl thread.
51 virtual void didUpdateMatrix(const float*); // Callable on impl thread. 51 virtual void didUpdateMatrix(const float*); // Callable on impl thread.
52 52
53 virtual void didLoseContext() OVERRIDE; 53 virtual void didLoseOutputSurface() OVERRIDE;
54 54
55 void setNeedsRedraw(); 55 void setNeedsRedraw();
56 56
57 struct FramePlane { 57 struct FramePlane {
58 ResourceProvider::ResourceId resourceId; 58 ResourceProvider::ResourceId resourceId;
59 gfx::Size size; 59 gfx::Size size;
60 GLenum format; 60 GLenum format;
61 61
62 FramePlane() : resourceId(0) { } 62 FramePlane() : resourceId(0) { }
63 63
(...skipping 27 matching lines...) Expand all
91 ResourceProvider::ResourceId m_externalTextureResource; 91 ResourceProvider::ResourceId m_externalTextureResource;
92 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer; 92 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer;
93 93
94 // 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.
95 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes]; 95 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes];
96 }; 96 };
97 97
98 } // namespace cc 98 } // namespace cc
99 99
100 #endif // CC_VIDEO_LAYER_IMPL_H_ 100 #endif // CC_VIDEO_LAYER_IMPL_H_
OLDNEW
« cc/layer_tree_host.cc ('K') | « cc/tiled_layer_unittest.cc ('k') | cc/video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698