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

Unified Diff: content/browser/compositor/buffer_queue.cc

Issue 1373033002: Allow partial damage on ARM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/buffer_queue.cc
diff --git a/content/browser/compositor/buffer_queue.cc b/content/browser/compositor/buffer_queue.cc
index 6f4a19dae34a42d5b73e8dbd6480ffe5f53157c5..e22ec38d5867b827f769890f045563537ffbbc64 100644
--- a/content/browser/compositor/buffer_queue.cc
+++ b/content/browser/compositor/buffer_queue.cc
@@ -62,18 +62,10 @@ void BufferQueue::CopyBufferDamage(int texture,
int source_texture,
const gfx::Rect& new_damage,
const gfx::Rect& old_damage) {
- gfx::Rect new_damage_mutable = new_damage;
- gfx::Rect old_damage_mutable = old_damage;
-#if defined(ARCH_CPU_ARM_FAMILY)
- // TODO(dnicoara): Remove ARM workaround once partial swap is enabled.
- new_damage_mutable = gfx::Rect(size_);
- old_damage_mutable = gfx::Rect();
-#endif
-
gl_helper_->CopySubBufferDamage(
texture_target_, texture, source_texture,
- SkRegion(gfx::RectToSkIRect(new_damage_mutable)),
- SkRegion(gfx::RectToSkIRect(old_damage_mutable)));
+ SkRegion(gfx::RectToSkIRect(new_damage)),
+ SkRegion(gfx::RectToSkIRect(old_damage)));
}
void BufferQueue::UpdateBufferDamage(const gfx::Rect& damage) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698