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

Unified Diff: cc/output/output_surface.cc

Issue 15688002: Part 1/3 (compositor) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Android build Created 7 years, 7 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 | « cc/output/output_surface.h ('k') | cc/output/renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index 7a7bdb00ac52e6a9be839d2eb0d59a79c73a34bb..b471a08b8ee49eac73f29e4520b55d13b83d6307 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -112,9 +112,9 @@ void OutputSurface::DiscardBackbuffer() {
context3d_->discardBackbufferCHROMIUM();
}
-void OutputSurface::Reshape(gfx::Size size) {
+void OutputSurface::Reshape(gfx::Size size, float scale_factor) {
DCHECK(context3d_);
- context3d_->reshape(size.width(), size.height());
+ context3d_->reshapeWithScaleFactor(size.width(), size.height(), scale_factor);
}
void OutputSurface::BindFramebuffer() {
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698