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

Unified Diff: content/renderer/gpu/compositor_software_output_device_gl_adapter.h

Issue 12379055: Changed SoftwareOutputDevice interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/gpu/compositor_software_output_device_gl_adapter.h
diff --git a/content/renderer/gpu/compositor_software_output_device_gl_adapter.h b/content/renderer/gpu/compositor_software_output_device_gl_adapter.h
index 5d77edc29b6abfa28350d50a953c1c89f7602e38..85e7af4040d42594a38cf852d9f1dd1f25f4bf18 100644
--- a/content/renderer/gpu/compositor_software_output_device_gl_adapter.h
+++ b/content/renderer/gpu/compositor_software_output_device_gl_adapter.h
@@ -5,16 +5,10 @@
#ifndef CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_GL_ADAPTER_H_
#define CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_GL_ADAPTER_H_
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
-#include "base/memory/ref_counted.h"
#include "base/threading/non_thread_safe.h"
#include "cc/software_output_device.h"
-#include "third_party/skia/include/core/SkCanvas.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
-#include "ui/gfx/size.h"
namespace content {
@@ -28,29 +22,18 @@ public:
WebKit::WebGraphicsContext3D* context3d);
virtual ~CompositorSoftwareOutputDeviceGLAdapter();
- // cc::SoftwareOutputDevice implementation
- virtual WebKit::WebImage* Lock(bool forWrite) OVERRIDE;
- virtual void Unlock() OVERRIDE;
- virtual void DidChangeViewportSize(gfx::Size size) OVERRIDE;
+ virtual void Resize(const gfx::Size& size) OVERRIDE;
+ virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE;
private:
- void Initialize();
- void Destroy();
- void Resize(const gfx::Size& viewportSize);
- void Draw(void* pixels);
-
- bool initialized_;
- int program_;
- int vertex_shader_;
- int fragment_shader_;
- unsigned int vertex_buffer_;
- unsigned framebuffer_texture_id_;
- gfx::Size framebuffer_texture_size_;
+ void InitShaders();
+ unsigned program_;
+ unsigned vertex_shader_;
+ unsigned fragment_shader_;
+ unsigned vertex_buffer_;
+ unsigned texture_id_;
scoped_ptr<WebKit::WebGraphicsContext3D> context3d_;
- scoped_ptr<SkDevice> device_;
- WebKit::WebImage image_;
- bool locked_for_write_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698