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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SKIA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/renderer_host/backing_store.h" 10 #include "content/browser/renderer_host/backing_store.h"
(...skipping 10 matching lines...) Expand all
21 namespace content { 21 namespace content {
22 class RenderProcessHost; 22 class RenderProcessHost;
23 } 23 }
24 24
25 // A backing store that uses skia. This is a temporary backing store used by 25 // A backing store that uses skia. This is a temporary backing store used by
26 // RenderWidgetHostViewViews. In time, only GPU rendering will be used for 26 // RenderWidgetHostViewViews. In time, only GPU rendering will be used for
27 // RWHVV, and then this backing store will be removed. 27 // RWHVV, and then this backing store will be removed.
28 class BackingStoreSkia : public BackingStore { 28 class BackingStoreSkia : public BackingStore {
29 public: 29 public:
30 CONTENT_EXPORT BackingStoreSkia( 30 CONTENT_EXPORT BackingStoreSkia(
31 RenderWidgetHost* widget, 31 content::RenderWidgetHost* widget,
32 const gfx::Size& size); 32 const gfx::Size& size);
33 33
34 virtual ~BackingStoreSkia(); 34 virtual ~BackingStoreSkia();
35 35
36 CONTENT_EXPORT void SkiaShowRect(const gfx::Point& point, 36 CONTENT_EXPORT void SkiaShowRect(const gfx::Point& point,
37 gfx::Canvas* canvas); 37 gfx::Canvas* canvas);
38 38
39 // BackingStore implementation. 39 // BackingStore implementation.
40 virtual size_t MemorySize() OVERRIDE; 40 virtual size_t MemorySize() OVERRIDE;
41 virtual void PaintToBackingStore( 41 virtual void PaintToBackingStore(
(...skipping 11 matching lines...) Expand all
53 53
54 private: 54 private:
55 SkBitmap bitmap_; 55 SkBitmap bitmap_;
56 56
57 scoped_ptr<SkCanvas> canvas_; 57 scoped_ptr<SkCanvas> canvas_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(BackingStoreSkia); 59 DISALLOW_COPY_AND_ASSIGN(BackingStoreSkia);
60 }; 60 };
61 61
62 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_ 62 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_SKIA_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/backing_store_manager.cc ('k') | content/browser/renderer_host/backing_store_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698