summaryrefslogtreecommitdiffstats
path: root/cc/shader.h
diff options
context:
space:
mode:
authorsheu@chromium.org <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 22:01:21 +0000
committersheu@chromium.org <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 22:01:21 +0000
commitd418203614fe5aacf0f2e03fe21644218c1e4f10 (patch)
tree86ce1fc632d7c258f677fabbfa435491afdf1083 /cc/shader.h
parent309ad6ae56d328c58867bed9567d2045cfa49673 (diff)
downloadchromium_src-d418203614fe5aacf0f2e03fe21644218c1e4f10.zip
chromium_src-d418203614fe5aacf0f2e03fe21644218c1e4f10.tar.gz
chromium_src-d418203614fe5aacf0f2e03fe21644218c1e4f10.tar.bz2
Plumb through cropped output size for VideoFrame
The video playback path needs to be able to handle cropped video frames, e.g. for HW decoders that output to macroblock-rounded buffer sizes. * Composite only the visible subrect from WebVideoFrame in cc::VideoLayerImpl * Remove some extraneous cropping logic from cc::VideoLayerImpl now that we have exact cropping info. * media::VideoFrame replaces "data_size_" member with "coded_size_", and adds a "visible_rect_" gfx::Rect to indicate the sub-rect of the entire frame that should be visible (after cropping) * Associated changes to various decoder/capture pipelines to plumb this through. TEST=build, run on x86, ARM BUG=155416,140509,chrome-os-partner:15230 Change-Id: I284bc893959db427bc9ae677aed8b07292d228ae Review URL: https://chromiumcodereview.appspot.com/11269017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/shader.h')
-rw-r--r--cc/shader.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/shader.h b/cc/shader.h
index a691712..67e93cb 100644
--- a/cc/shader.h
+++ b/cc/shader.h
@@ -35,13 +35,11 @@ public:
std::string getShaderString() const;
int matrixLocation() const { return m_matrixLocation; }
- int yWidthScaleFactorLocation() const { return m_yWidthScaleFactorLocation; }
- int uvWidthScaleFactorLocation() const { return m_uvWidthScaleFactorLocation; }
+ int texScaleLocation() const { return m_texScaleLocation; }
private:
int m_matrixLocation;
- int m_yWidthScaleFactorLocation;
- int m_uvWidthScaleFactorLocation;
+ int m_texScaleLocation;
};
class VertexShaderPos {