diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 22:29:56 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 22:29:56 +0000 |
commit | 9f4f3322e7c9a5feedd5ca2b986daf2f8d5b8d3d (patch) | |
tree | a67a3d0397a03e12ee51aa8720f612c62c20e936 /content/browser/renderer_host/accelerated_surface_container_mac.h | |
parent | a3102766e725636ad23ad99faa1e8a481a1129e7 (diff) | |
download | chromium_src-9f4f3322e7c9a5feedd5ca2b986daf2f8d5b8d3d.zip chromium_src-9f4f3322e7c9a5feedd5ca2b986daf2f8d5b8d3d.tar.gz chromium_src-9f4f3322e7c9a5feedd5ca2b986daf2f8d5b8d3d.tar.bz2 |
gpu: reference target surfaces through a globally unique surface id.
This allows the gpu process to ignore all knowledge of renderers. It simplifies
some of the gpu <-> browser and gpu <-> renderer IPC, but mostly paves the way
for non-renderer clients.
Surfaces are kept in a global GpuSurfaceTracker which is just a thread-safe map.
BUG=99516
TEST=covered by existing tests. Run chrome, open poster circle (or other accelerated content page).
Review URL: http://codereview.chromium.org/9194005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/accelerated_surface_container_mac.h')
-rw-r--r-- | content/browser/renderer_host/accelerated_surface_container_mac.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content/browser/renderer_host/accelerated_surface_container_mac.h b/content/browser/renderer_host/accelerated_surface_container_mac.h index 1bbf730..fab05ce 100644 --- a/content/browser/renderer_host/accelerated_surface_container_mac.h +++ b/content/browser/renderer_host/accelerated_surface_container_mac.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -82,8 +82,8 @@ class AcceleratedSurfaceContainerMac { bool ShouldBeVisible() const; // Notifies the the container that its surface was painted to. - void set_was_painted_to(uint64 surface_id); - void set_was_painted_to(uint64 surface_id, + void set_was_painted_to(uint64 surface_handle); + void set_was_painted_to(uint64 surface_handle, const gfx::Rect& update_rect); // Notifies the container that its surface is invalid. @@ -92,7 +92,7 @@ class AcceleratedSurfaceContainerMac { // Enqueue our texture for later deletion. void EnqueueTextureForDeletion(); - void set_was_painted_to_common(uint64 surface_id); + void set_was_painted_to_common(uint64 surface_handle); // The manager of this accelerated surface container. AcceleratedSurfaceContainerManagerMac* manager_; @@ -106,8 +106,8 @@ class AcceleratedSurfaceContainerMac { // IOSurfaceRef type when building on 10.5. base::mac::ScopedCFTypeRef<CFTypeRef> surface_; - // The id of |surface_|, or 0 if |surface_| is NULL. - uint64 surface_id_; + // The handle of |surface_|, or 0 if |surface_| is NULL. + uint64 surface_handle_; // The width and height of the io surface. During resizing, this is different // from |width_| and |height_|. |