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

Unified Diff: app/surface/transport_dib_win.cc

Issue 6665029: Adds a TransportDIB::Id value that is explicitly invalid and use it when compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compiles on windows Created 9 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 side-by-side diff with in-line comments
Download patch
Index: app/surface/transport_dib_win.cc
diff --git a/app/surface/transport_dib_win.cc b/app/surface/transport_dib_win.cc
index 22812c9d8400a29448209e5cd4981eaff4b09713..80d83f2f263ddd2b3a112791de598b2839087197 100644
--- a/app/surface/transport_dib_win.cc
+++ b/app/surface/transport_dib_win.cc
@@ -60,6 +60,11 @@ bool TransportDIB::is_valid(Handle dib) {
return dib != NULL;
}
+// static
+TransportDIB::Id TransportDIB::InvalidId() {
+ return Id(DefaultHandleValue(), 0);
brettw 2011/03/17 03:31:00 It seems like this should just use the default con
+}
+
skia::PlatformCanvas* TransportDIB::GetPlatformCanvas(int w, int h) {
// This DIB already mapped the file into this process, but PlatformCanvas
// will map it again.

Powered by Google App Engine
This is Rietveld 408576698