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

Side by Side Diff: content/browser/renderer_host/backing_store_aura.h

Issue 12389084: Fix Aura backing store to work with non-integer scale factors. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge with trunk Created 7 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/backing_store_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_AURA_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/renderer_host/backing_store.h" 9 #include "content/browser/renderer_host/backing_store.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual bool CopyFromBackingStore(const gfx::Rect& rect, 49 virtual bool CopyFromBackingStore(const gfx::Rect& rect,
50 skia::PlatformBitmap* output) OVERRIDE; 50 skia::PlatformBitmap* output) OVERRIDE;
51 virtual void ScrollBackingStore(const gfx::Vector2d& delta, 51 virtual void ScrollBackingStore(const gfx::Vector2d& delta,
52 const gfx::Rect& clip_rect, 52 const gfx::Rect& clip_rect,
53 const gfx::Size& view_size) OVERRIDE; 53 const gfx::Size& view_size) OVERRIDE;
54 54
55 private: 55 private:
56 SkBitmap bitmap_; 56 SkBitmap bitmap_;
57 57
58 scoped_ptr<SkCanvas> canvas_; 58 scoped_ptr<SkCanvas> canvas_;
59 int device_scale_factor_; 59 float device_scale_factor_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(BackingStoreAura); 61 DISALLOW_COPY_AND_ASSIGN(BackingStoreAura);
62 }; 62 };
63 63
64 } // namespace content 64 } // namespace content
65 65
66 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_AURA_H_ 66 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/backing_store_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698