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

Side by Side Diff: chrome/browser/renderer_host/backing_store_proxy.h

Issue 3834003: On Windows, create a new TransportDIB::Handle struct which includes the file (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_PROXY_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_PROXY_H_
6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_PROXY_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/renderer_host/backing_store.h" 10 #include "chrome/browser/renderer_host/backing_store.h"
11 #include "ipc/ipc_channel.h" 11 #include "ipc/ipc_channel.h"
12 12
13 class GpuProcessHostUIShim; 13 class GpuProcessHostUIShim;
14 14
15 class BackingStoreProxy : public BackingStore, 15 class BackingStoreProxy : public BackingStore,
16 public IPC::Channel::Listener { 16 public IPC::Channel::Listener {
17 public: 17 public:
18 BackingStoreProxy(RenderWidgetHost* widget, const gfx::Size& size, 18 BackingStoreProxy(RenderWidgetHost* widget, const gfx::Size& size,
19 GpuProcessHostUIShim* process_shim, int32 routing_id); 19 GpuProcessHostUIShim* process_shim, int32 routing_id);
20 virtual ~BackingStoreProxy(); 20 virtual ~BackingStoreProxy();
21 21
22 // BackingStore implementation. 22 // BackingStore implementation.
23 virtual void PaintToBackingStore(RenderProcessHost* process, 23 virtual void PaintToBackingStore(RenderProcessHost* process,
24 TransportDIB::Id bitmap, 24 TransportDIB::Id dib_id,
25 TransportDIB::Handle dib_handle,
25 const gfx::Rect& bitmap_rect, 26 const gfx::Rect& bitmap_rect,
26 const std::vector<gfx::Rect>& copy_rects, 27 const std::vector<gfx::Rect>& copy_rects,
27 bool* painted_synchronously); 28 bool* painted_synchronously);
28 virtual bool CopyFromBackingStore(const gfx::Rect& rect, 29 virtual bool CopyFromBackingStore(const gfx::Rect& rect,
29 skia::PlatformCanvas* output); 30 skia::PlatformCanvas* output);
30 virtual void ScrollBackingStore(int dx, int dy, 31 virtual void ScrollBackingStore(int dx, int dy,
31 const gfx::Rect& clip_rect, 32 const gfx::Rect& clip_rect,
32 const gfx::Size& view_size); 33 const gfx::Size& view_size);
33 34
34 // IPC::Channel::Listener implementation. 35 // IPC::Channel::Listener implementation.
(...skipping 10 matching lines...) Expand all
45 46
46 // Set to true when we're waiting for the GPU process to do a paint and send 47 // Set to true when we're waiting for the GPU process to do a paint and send
47 // back a "done" message. In this case, the renderer will be waiting for our 48 // back a "done" message. In this case, the renderer will be waiting for our
48 // message that we're done using the backing store. 49 // message that we're done using the backing store.
49 bool waiting_for_paint_ack_; 50 bool waiting_for_paint_ack_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(BackingStoreProxy); 52 DISALLOW_COPY_AND_ASSIGN(BackingStoreProxy);
52 }; 53 };
53 54
54 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_PROXY_H_ 55 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698