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

Side by Side Diff: content/renderer/render_widget.h

Issue 10451112: content/chromeos: Fix WebKit software rendering in high-device-scale-factors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const-int Created 8 years, 6 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 | Annotate | Revision Log
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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <vector> 10 #include <vector>
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // Queue of UpdateRect messages corresponding to a SwapBuffers. We want to 517 // Queue of UpdateRect messages corresponding to a SwapBuffers. We want to
518 // delay sending of UpdateRect until the corresponding SwapBuffers has been 518 // delay sending of UpdateRect until the corresponding SwapBuffers has been
519 // executed. Since we can have several in flight, we need to keep them in a 519 // executed. Since we can have several in flight, we need to keep them in a
520 // queue. Note: some SwapBuffers may not correspond to an update, in which 520 // queue. Note: some SwapBuffers may not correspond to an update, in which
521 // case NULL is added to the queue. 521 // case NULL is added to the queue.
522 std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_; 522 std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_;
523 523
524 // Properties of the screen hosting this RenderWidget instance. 524 // Properties of the screen hosting this RenderWidget instance.
525 WebKit::WebScreenInfo screen_info_; 525 WebKit::WebScreenInfo screen_info_;
526 526
527 // The device scale factor. This value is computed from the DPI entries in
528 // |screen_info_| on some platforms, and defaults to 1 on other platforms.
529 int device_scale_factor_;
530
527 // Set to true if we should invert all pixels. 531 // Set to true if we should invert all pixels.
528 bool invert_; 532 bool invert_;
529 533
530 // The Skia paint object for inverting. 534 // The Skia paint object for inverting.
531 scoped_ptr<SkPaint> invert_paint_; 535 scoped_ptr<SkPaint> invert_paint_;
532 536
533 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 537 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
534 }; 538 };
535 539
536 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 540 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698