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

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

Issue 7395020: Create new GLSurface for cross process image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/accelerated_surface_container_touch.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_TOUCH_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_TOUCH_H_
6 #define CHROME_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_TOUCH_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_TOUCH_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h"
11 #include "ui/gfx/compositor/compositor_gl.h" 10 #include "ui/gfx/compositor/compositor_gl.h"
12 11
13 // Helper class for storing image data from the GPU process renderered 12 // Helper class for storing image data from the GPU process renderered
14 // on behalf of the RWHVV. It assumes that GL context that will display 13 // on behalf of the RWHVV. It assumes that GL context that will display
15 // the image data is current when an instance of this object is created 14 // the image data is current when an instance of this object is created
16 // or destroyed. 15 // or destroyed.
17 class AcceleratedSurfaceContainerTouch : public ui::TextureGL { 16 class AcceleratedSurfaceContainerTouch : public ui::TextureGL {
18 public: 17 public:
19 AcceleratedSurfaceContainerTouch(ui::CompositorGL* compositor, 18 static AcceleratedSurfaceContainerTouch* CreateAcceleratedSurfaceContainer(
20 const gfx::Size& size, 19 ui::CompositorGL* compositor,
21 uint64 surface_handle); 20 const gfx::Size& size,
21 uint64 surface_handle);
22 22
23 // TextureGL implementation
23 virtual void SetBitmap(const SkBitmap& bitmap, 24 virtual void SetBitmap(const SkBitmap& bitmap,
24 const gfx::Point& origin, 25 const gfx::Point& origin,
25 const gfx::Size& overall_size) OVERRIDE; 26 const gfx::Size& overall_size) OVERRIDE;
26 27
27 virtual void Draw(const ui::TextureDrawParams& params) OVERRIDE; 28 protected:
29 AcceleratedSurfaceContainerTouch(
30 ui::CompositorGL* compositor,
31 const gfx::Size& size);
28 32
29 protected: 33 private:
30 ~AcceleratedSurfaceContainerTouch();
31
32 void* image_;
33 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerTouch); 34 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerTouch);
34 }; 35 };
35 36
36 #endif // CHROME_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_TOUCH_H_ 37 #endif // CHROME_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_TOUCH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/accelerated_surface_container_touch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698