diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-18 07:50:56 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-18 07:50:56 +0000 |
commit | 89e8267acd40726861cbe9eef803534000286c70 (patch) | |
tree | de43b0649d24dc07f1ed01845b2d9c9612485014 /cc/quads/stream_video_draw_quad.h | |
parent | 20e99aef44b446c91465cd7b64b8e126c6387620 (diff) | |
download | chromium_src-89e8267acd40726861cbe9eef803534000286c70.zip chromium_src-89e8267acd40726861cbe9eef803534000286c70.tar.gz chromium_src-89e8267acd40726861cbe9eef803534000286c70.tar.bz2 |
Part 6 of cc/ directory shuffles: quads
Continuation of https://src.chromium.org/viewvc/chrome?view=rev&revision=188681
BUG=190824
TBR=enne@chromium.org, jschuh@chromium.org
Review URL: https://codereview.chromium.org/12913005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188693 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/quads/stream_video_draw_quad.h')
-rw-r--r-- | cc/quads/stream_video_draw_quad.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/cc/quads/stream_video_draw_quad.h b/cc/quads/stream_video_draw_quad.h new file mode 100644 index 0000000..bfbcdf4 --- /dev/null +++ b/cc/quads/stream_video_draw_quad.h @@ -0,0 +1,46 @@ +// Copyright 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CC_QUADS_STREAM_VIDEO_DRAW_QUAD_H_ +#define CC_QUADS_STREAM_VIDEO_DRAW_QUAD_H_ + +#include "base/memory/scoped_ptr.h" +#include "cc/base/cc_export.h" +#include "cc/quads/draw_quad.h" +#include "ui/gfx/transform.h" + +namespace cc { + +class CC_EXPORT StreamVideoDrawQuad : public DrawQuad { + public: + static scoped_ptr<StreamVideoDrawQuad> Create(); + + void SetNew(const SharedQuadState* shared_quad_state, + gfx::Rect rect, + gfx::Rect opaque_rect, + unsigned texture_id, + const gfx::Transform& matrix); + + void SetAll(const SharedQuadState* shared_quad_state, + gfx::Rect rect, + gfx::Rect opaque_rect, + gfx::Rect visible_rect, + bool needs_blending, + unsigned texture_id, + const gfx::Transform& matrix); + + unsigned texture_id; + gfx::Transform matrix; + + virtual void IterateResources(const ResourceIteratorCallback& callback) + OVERRIDE; + + static const StreamVideoDrawQuad* MaterialCast(const DrawQuad*); + private: + StreamVideoDrawQuad(); +}; + +} + +#endif // CC_QUADS_STREAM_VIDEO_DRAW_QUAD_H_ |