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

Side by Side Diff: cc/draw_quad.h

Issue 11274017: Added support for YUV videos to the software compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cosmetics. Created 8 years, 2 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 | 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 CCDrawQuad_h 5 #ifndef CCDrawQuad_h
6 #define CCDrawQuad_h 6 #define CCDrawQuad_h
7 7
8 #include "cc/shared_quad_state.h" 8 #include "cc/shared_quad_state.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 18 matching lines...) Expand all
29 Invalid, 29 Invalid,
30 Checkerboard, 30 Checkerboard,
31 DebugBorder, 31 DebugBorder,
32 IOSurfaceContent, 32 IOSurfaceContent,
33 RenderPass, 33 RenderPass,
34 TextureContent, 34 TextureContent,
35 SolidColor, 35 SolidColor,
36 TiledContent, 36 TiledContent,
37 YUVVideoContent, 37 YUVVideoContent,
38 StreamVideoContent, 38 StreamVideoContent,
39 VideoFrameContent,
39 }; 40 };
40 41
41 gfx::Rect quadRect() const { return m_quadRect; } 42 gfx::Rect quadRect() const { return m_quadRect; }
42 const WebKit::WebTransformationMatrix& quadTransform() const { return m_shar edQuadState->quadTransform; } 43 const WebKit::WebTransformationMatrix& quadTransform() const { return m_shar edQuadState->quadTransform; }
43 gfx::Rect visibleContentRect() const { return m_sharedQuadState->visibleCont entRect; } 44 gfx::Rect visibleContentRect() const { return m_sharedQuadState->visibleCont entRect; }
44 gfx::Rect clippedRectInTarget() const { return m_sharedQuadState->clippedRec tInTarget; } 45 gfx::Rect clippedRectInTarget() const { return m_sharedQuadState->clippedRec tInTarget; }
45 float opacity() const { return m_sharedQuadState->opacity; } 46 float opacity() const { return m_sharedQuadState->opacity; }
46 // For the purposes of blending, what part of the contents of this quad are opaque? 47 // For the purposes of blending, what part of the contents of this quad are opaque?
47 gfx::Rect opaqueRect() const; 48 gfx::Rect opaqueRect() const;
48 bool needsBlending() const { return m_needsBlending || !opaqueRect().Contain s(m_quadVisibleRect); } 49 bool needsBlending() const { return m_needsBlending || !opaqueRect().Contain s(m_quadVisibleRect); }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Be default, this rect is empty. It is used when the shared quad state and above 88 // Be default, this rect is empty. It is used when the shared quad state and above
88 // variables determine that the quad is not fully opaque but may be partiall y opaque. 89 // variables determine that the quad is not fully opaque but may be partiall y opaque.
89 gfx::Rect m_opaqueRect; 90 gfx::Rect m_opaqueRect;
90 }; 91 };
91 92
92 #pragma pack(pop) 93 #pragma pack(pop)
93 94
94 } 95 }
95 96
96 #endif 97 #endif
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/gl_renderer.cc » ('j') | cc/video_frame_draw_quad.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698