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

Side by Side Diff: chrome/browser/renderer_host/backing_store.cc

Issue 19491: POSIX: bitmap data on the wire (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/renderer_host/backing_store.h" 5 #include "chrome/browser/renderer_host/backing_store.h"
6 6
7 class RenderWidgetHost; 7 class RenderWidgetHost;
8 8
9 namespace { 9 namespace {
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 return backing_store; 55 return backing_store;
56 } 56 }
57 57
58 // static 58 // static
59 BackingStore* BackingStoreManager::PrepareBackingStore( 59 BackingStore* BackingStoreManager::PrepareBackingStore(
60 RenderWidgetHost* host, 60 RenderWidgetHost* host,
61 const gfx::Rect& backing_store_rect, 61 const gfx::Rect& backing_store_rect,
62 base::ProcessHandle process_handle, 62 base::ProcessHandle process_handle,
63 HANDLE bitmap_section, 63 BitmapWireData bitmap_section,
64 const gfx::Rect& bitmap_rect, 64 const gfx::Rect& bitmap_rect,
65 bool* needs_full_paint) { 65 bool* needs_full_paint) {
66 BackingStore* backing_store = GetBackingStore(host, 66 BackingStore* backing_store = GetBackingStore(host,
67 backing_store_rect.size()); 67 backing_store_rect.size());
68 if (!backing_store) { 68 if (!backing_store) {
69 // We need to get Webkit to generate a new paint here, as we 69 // We need to get Webkit to generate a new paint here, as we
70 // don't have a previous snapshot. 70 // don't have a previous snapshot.
71 if (bitmap_rect != backing_store_rect) { 71 if (bitmap_rect != backing_store_rect) {
72 DCHECK(needs_full_paint != NULL); 72 DCHECK(needs_full_paint != NULL);
73 *needs_full_paint = true; 73 *needs_full_paint = true;
(...skipping 25 matching lines...) Expand all
99 if (it == cache->end()) 99 if (it == cache->end())
100 return; 100 return;
101 101
102 cache->Erase(it); 102 cache->Erase(it);
103 103
104 if (cache->empty()) { 104 if (cache->empty()) {
105 delete cache; 105 delete cache;
106 cache = NULL; 106 cache = NULL;
107 } 107 }
108 } 108 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/backing_store.h ('k') | chrome/browser/renderer_host/backing_store_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698