summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/Surface.cpp
diff options
context:
space:
mode:
authorMatthew Hui <mhui@codeaurora.org>2012-09-20 10:06:12 -0400
committerSteve Kondik <shade@chemlab.org>2013-01-21 01:19:49 -0800
commite4a9afa814f96ff1cfaab5a755d903ab16b84650 (patch)
treeab4961819a17ef9abfa553bab1c7aa4ad244299d /Source/WebCore/platform/graphics/android/rendering/Surface.cpp
parent68e9c4e7cda8607f395a75781809fabbcc2bbeb8 (diff)
downloadexternal_webkit-e4a9afa814f96ff1cfaab5a755d903ab16b84650.zip
external_webkit-e4a9afa814f96ff1cfaab5a755d903ab16b84650.tar.gz
external_webkit-e4a9afa814f96ff1cfaab5a755d903ab16b84650.tar.bz2
Revert "Workaround double blit failure"
This reverts commit 0c274b96c2dfb5a83b12a99f1ca9069378f73bdb. Change-Id: Iaea6c25cf1aae59e7ce85cd43b028ba9c2e437f0 CRs-fixed: 396141
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/Surface.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/Surface.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/Surface.cpp b/Source/WebCore/platform/graphics/android/rendering/Surface.cpp
index 6caf93b..24d8fc9 100644
--- a/Source/WebCore/platform/graphics/android/rendering/Surface.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/Surface.cpp
@@ -419,14 +419,6 @@ bool Surface::blitFromContents(Tile* tile)
if (!singleLayer() || !tile || !getFirstLayer() || !getFirstLayer()->content())
return false;
- if (tile->frontTexture() != tile->lastDrawnTexture()) {
- // the below works around an issue where glTexSubImage2d can't update a
- // texture that hasn't drawn yet by drawing it off screen.
- // glFlush() and glFinish() work also, but are likely more wasteful.
- SkRect rect = SkRect::MakeXYWH(-100, -100, 0, 0);
- FloatRect fillPortion(0, 0, 0, 0);
- tile->frontTexture()->drawGL(false, rect, 1.0f, 0, false, true, fillPortion);
- }
LayerContent* content = getFirstLayer()->content();
// Extract the dirty rect from the region. Note that this is *NOT* constrained
// to this tile