Skip to content

Commit

Permalink
perf(mem): avoid some extra QImage copy
Browse files Browse the repository at this point in the history
Change-Id: I840d35f05177640513ef159b2a2850f96ec7ab6f
  • Loading branch information
hualet committed Jul 2, 2018
1 parent b2ff74d commit f6c6a0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

build*/
*.pro.user*
CMakeLists.txt.user
CMakeLists.txt.user*
*.DS_Store
*.qm

Expand Down
2 changes: 1 addition & 1 deletion frame/item/components/appsnapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void AppSnapshot::fetchSnapshot()

m_snapshot = qimage.copy(left, top, width - left - right, height - top - bottom);
} else {
m_snapshot = qimage.copy();
m_snapshot = qimage;
}

const auto size = rect().marginsRemoved(QMargins(8, 8, 8, 8)).size();
Expand Down

0 comments on commit f6c6a0e

Please sign in to comment.