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

Unified Diff: runtime/embedders/openglui/common/graphics_handler.h

Issue 12340036: Android improvements: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « runtime/embedders/openglui/common/gl.dart ('k') | runtime/embedders/openglui/common/graphics_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/embedders/openglui/common/graphics_handler.h
===================================================================
--- runtime/embedders/openglui/common/graphics_handler.h (revision 18917)
+++ runtime/embedders/openglui/common/graphics_handler.h (working copy)
@@ -11,8 +11,11 @@
#include "embedders/openglui/common/timer.h"
class GraphicsHandler : public ISized {
+ private:
+ void DecoderHack(int x, SkStream* s);
+
public:
- GraphicsHandler();
+ explicit GraphicsHandler(const char* resource_path);
const int32_t& height() {
return height_;
@@ -39,10 +42,15 @@
SkCanvas* CreateDisplayCanvas();
SkCanvas* CreateBitmapCanvas(int width, int height);
+ inline const char* resource_path() {
+ return resource_path_;
+ }
+
virtual ~GraphicsHandler() {
}
protected:
+ const char* resource_path_;
SkAutoGraphics ag;
GrContext* grcontext;
int32_t width_, height_;
« no previous file with comments | « runtime/embedders/openglui/common/gl.dart ('k') | runtime/embedders/openglui/common/graphics_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698