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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 11558039: Subrect snapshot support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indents Created 8 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE; 48 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE;
49 virtual void SetVisible(bool visible) OVERRIDE; 49 virtual void SetVisible(bool visible) OVERRIDE;
50 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; 50 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE;
51 virtual bool CompositeAndReadback( 51 virtual bool CompositeAndReadback(
52 void *pixels, const gfx::Rect& rect) OVERRIDE; 52 void *pixels, const gfx::Rect& rect) OVERRIDE;
53 virtual void Composite() OVERRIDE; 53 virtual void Composite() OVERRIDE;
54 virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE; 54 virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE;
55 virtual WebKit::WebGLId GenerateCompressedTexture( 55 virtual WebKit::WebGLId GenerateCompressedTexture(
56 gfx::Size& size, int data_size, void* data) OVERRIDE; 56 gfx::Size& size, int data_size, void* data) OVERRIDE;
57 virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE; 57 virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE;
58 virtual void CopyTextureToBitmap(WebKit::WebGLId texture_id, 58 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id,
59 gfx::JavaBitmap& bitmap) OVERRIDE;
60 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id,
61 const gfx::Rect& sub_rect,
59 gfx::JavaBitmap& bitmap) OVERRIDE; 62 gfx::JavaBitmap& bitmap) OVERRIDE;
60 63
61 // LayerTreeHostClient implementation. 64 // LayerTreeHostClient implementation.
62 virtual void willBeginFrame() OVERRIDE {} 65 virtual void willBeginFrame() OVERRIDE {}
63 virtual void didBeginFrame() OVERRIDE {} 66 virtual void didBeginFrame() OVERRIDE {}
64 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; 67 virtual void animate(double monotonicFrameBeginTime) OVERRIDE;
65 virtual void layout() OVERRIDE; 68 virtual void layout() OVERRIDE;
66 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, 69 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta,
67 float pageScale) OVERRIDE; 70 float pageScale) OVERRIDE;
68 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; 71 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE;
(...skipping 26 matching lines...) Expand all
95 98
96 Compositor::Client* client_; 99 Compositor::Client* client_;
97 base::WeakPtrFactory<CompositorImpl> weak_factory_; 100 base::WeakPtrFactory<CompositorImpl> weak_factory_;
98 101
99 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 102 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
100 }; 103 };
101 104
102 } // namespace content 105 } // namespace content
103 106
104 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 107 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698